WSGIScriptAlias /mysite /var/www/html/mysite/app.wsgi This works for users visiting http://server/mysite/ and http://server/mysite
However, relative links only work for users visiting http://server/mysite/. e.g. href='dosomething/123' points to http://server/mysite/dosomething/123. Without the trailing slash, the 'mysite' is missing. By default, the Apache DirectorySlash directive adds trailing slashes to URLs pointing to directories. But this doesn't seem to happen when using WSGIScriptAlias. Apache won't add the / to /mysite. I guess it doesn't consider mysite as a directory. How can I host my app in a subdirectory and get an automatic trailing slash? -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.