So apparently, that bug that seems to hit everyone, where when you type a URL that points to a directory and you’re missing the trailling slash, it fucks up, well the solution is apparently to set the ServerName directive in your httpd.conf to the actual thing that resolves to your server. Since a URL that looks like
http://server/path
really gets redirected to
http://server/path/
if path is a directory. But the redirect header in the page that you get for the original request doesn’t know what server name to fill in if you don’t set that ServerName directive.
So there. A simple case of RTF configuration file.

4 comments

Leave a comment

Your email address will not be published. Required fields are marked *