On Mon, Jun 14, 2010 at 3:23 PM, viper <[email protected]> wrote: > This is under my virtual host and works great: > WSGIScriptAlias /login /var/wsgi/login.wsgi > > http://mysite.com/login <-- works. > > How do I make it so "login" can be case in-sensitive? Login, LOGIN, > LoGiN ? > > I placed the following in my WSGI.CONF file (apache2) which gets > imported into apache2.conf on server restart along with the modules: > > WSGICaseSensitivity Off > > And restarted my server. However, not working... /login <-- works, / > Login <-- not working > > Anything else I need to do?
The WSGICaseSensitivity only works on URLs mapped underneath the alias. Since apache is mapping /login to your application before WSGI get a hold of you, you can do one of two things. 1. Map / to your WSGI app, and then login/Login/LOGIN will all be handled by it. 2. Make apache case-insensitive? Perhaps: http://httpd.apache.org/docs/2.2/mod/mod_speling.html -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en.
