Jump to content

Recommended Posts

Posted

I am trying to install 'web.py' application on heliohost. And everything seems to work fine instead sessions.

I store session information in postgresql. But any reference to session variable creates new session object (new record in a database) and therefore I have no session persistence among my application. I guess something has to be wrong with apache configuration file, not python script. Maybe my guess is wrong. Anyway I can't figure that out. Please, any suggestions. I'm still a rookie... But I hope time will fix it :-)

 

.htaccess file script

 

 

<Files index.py>

SetHandler wsgi-script

Options ExecCGI FollowSymLinks

</Files>

 

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteOptions Inherit

RewriteBase /myapp

RewriteCond %{REQUEST_URI} !^/favicon.ico$

RewriteCond %{REQUEST_URI} !^(/.*)+index.py/

RewriteRule ^(.*)$ index.py/$1 [PT]

</IfModule>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...