Hi everyone,
I found a few threads about WSGI and serving the static-folder,
unfortunately, they didn't help me a lot.
I'd like to deploy a web.py-app on Apache 2.x with mod_wsgi and ran
into two problem.
DocumentRoot of Apache is /srv/www/html
web.py-application is in $DocumentRoot/subfolder/applicationname
I allowed override all in httpd.conf and placed the
following .htaccess in $DocumentRoot/subfolder/applicationname :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /subfolder/applicationname/
RewriteCond %{REQUEST_URI} !^/icons
RewriteCond %{REQUEST_URI} !^/static
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^(/.*)+code.py/
RewriteRule ^(.*)$ code.py/$1 [PT]
</IfModule>
As you can see, I set the RewriteBase to the the directory with
code.py in it and added a RewriteCond for the static-folder as
suggested in the documention. However, the files in /static/ are not
found by Apache - what am I missing?
Concerning the URLs a part seems to be missing and I couldn't figure
out where to configure that.
For instance, I created a page using a form with URL
http://cubert/subfolder/applicationname/myform and the submit-button
(in web.py) pointing to /myform/entry/add - this should be translated
to http://cubert/subfolder/applicationname/myform/entry/add by Apache,
shouldn't it? I guess I'm missing something in my .htaccess?
I'd be glad if you could give me a hint or point me to some further
documention.
All the best,
Konstantin
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.