> See if http://forum.webfaction.com/viewtopic.php?pid=8473#p8473
> provides any hints for you....

Thanks Yarko.

It still has the troublesome line:

WSGIScriptAlias / /home/[YOUR ACCOUNT]/webapps/apachewsgi/web2py/wsgihandler.py

Which essentially tells apache to handle anything coming at the root
of the server through the wsgihandler.py

I did figure out a hack if anyone comes up against this problem:

RewriteEngine on
RewriteRule ^/[NAMEOFAPP](.*)$ /web2py/[NAMEOFAPP]$1 [PT,L]
WSGIScriptAlias /web2py /opt/web2py/wsgihandler.py

This essentially allows you to place web2py outside of root.
Mod_Rewrite then rewrites the URLs to fix what would be broken URLs so
when URL() function writes:

http://server/nameofapp/

it becomes:

http://server/web2py/nameofapp

The PT (pass-through) directive ensures the users does not see the rewriten URL.

Thanks,

Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to