Hello everyone, I'm trying to rewrite URLs because I can't install web2py on Apache root. I'm using web2py 2.0.9 apps on CentOS 5 & 6 servers. I've fighting this thing for hours... I'm open to using routes.py or getting correct apache syntax. Anything to get a solution.
Below is my apache file. It works fine on my CentOS 6 servers Apache Server version: Apache/2.2.15, but on CentOS 5, Server version: Apache/2.2.3 the rewrite rules never fire. I'm totally vexed. I tried using routes.py, routes_out = ((r'/(?P<any>.*)', r'/w2p/\g<any>'),) but on one page, I'm using the FORM helper and the submit button SID links to /reporter/<controller> and so then Apache fires a 404. NameVirtualHost *:80 <VirtualHost 10.5.7.1:80> ServerName web2py RewriteEngine on RewriteLog "/var/log/httpd/rewrite_log" RewriteLogLevel 9 RewriteRule ^/reporter(.*)$ /w2p/reporter$1 [PT,L] RewriteRule ^/welcome(.*)$ /w2p/welcome$1 [PT,L] WSGIScriptAlias /w2p /opt/sap/www/web2py/wsgihandler.py <Directory /opt/sap/www/web2py/> AllowOverride None Order Allow,Deny Deny from all <Files wsgihandler.py> Allow from all </Files> </Directory> AliasMatch ^/([^/]+)/static/(.*) \ /opt/sap/www/web2py/applications/$1/static/$2 <Directory /opt/sap/www/web2py/applications/*/static/> Order Allow,Deny Allow from all </Directory> <Location /admin> Deny from all </Location> <LocationMatch ^/([^/]+)/appadmin> Deny from all </LocationMatch> </VirtualHost> Any suggestions or help for me? TIA! Dave -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.