This is configured with the DirectoryIndex directive. When a directory is requested, Apache may be configured to send a particular file within that directory automatically. If UseCanonicalName is on, then you need to assure that ServerName is set correctly in order for this redirect to work. Normally, when UseCanonicalName is set off, the name supplied by the client in the Host HTTP request header is used. This is necessary so relative hyperlinks will work in the resulting file.įor this to work, Apache must know the name of the server so that it can send a redirect back to itself. rather than ), then Apache must send a redirect to add the trailing slash to the URL. If you request a directory without including the trailing slash in its name (i.e. Here we describe various types of things that the server can send when you request a directory rather than an individual file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |