Your application/web framework needs to handle adding trailing slashes as 
Apache can't know what the appropriate action is when you are mounting a 
separate web application, it can only know for the case of when URLs are 
matched agains filesystem. Django has has ability to do trailing slash 
addition when needed. Not sure about other frameworks.

Sorry about slow reply. I got the moderation message for this and someone 
else allowed it onto the list, but it never appeared in by email client, 
not anywhere, not even in SPAM.

Graham

On Saturday, 9 December 2017 05:21:15 UTC+11, charles thomas wrote:
>
> 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.

Reply via email to