I'm trying to set up a static maintenance page under apache that doesn't
depend on web2py. The problem is that the mod_wsgi scriptalias directive
seems to override the rewrite instructions to serve the static maintenance
page.
My apache config includes this:
ErrorDocument 503 /maintenance/maintenance.html
RewriteEngine on
RewriteCond /var/www/html/maintenance/maintenance.enabled -f
RewriteCond %{REQUEST_URI} !=/maintenance/maintenance.html
RewriteRule ^ - [R=503,L]
This works fine as long as I disable the mod_wsgi scriptalias directive:
WSGIScriptAlias / /path/to/my/web2py/wsgihandler.py
Basically I need web2py to handle any urls from the base of my domain.
Except I want to bypass that alias for paths beginning "/maintenance".
Any suggestions for how to configure this?
Thanks,
Ian
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/6408947e-b532-444c-92eb-6dc57989ba00n%40googlegroups.com.