httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Aliases
Date Wed, 19 Feb 2003 13:54:50 GMT
>-----Original Message-----
>From: Warhurst, SI (Spencer) []
>The problem comes in when setting up these aliases. I end up 
>having to have
>4 aliases for each list, as follows:
>Alias /mailinglistname "d:/www/lists/mailinglistname.html"
>Alias /mailinglistname/ "d:/www/lists/mailinglistname.html"
>Alias /MAILINGLISTNAME "d:/www/lists/mailinglistname.html"
>Alias /MAILINGLISTNAME/ "d:/www/lists/mailinglistname.html"
>Am I doing this right? Should I simply be educating users not to put in
>trailing slashes and always put the mailing list name in lower case? Or
>should my questions be directed at Apache itself.. ie: why is 
>an alias case sensitive when the rest of the URL isn't?

URLs *are* case-sensitive. and are different URLs. Or rather, case is
preserved when a request is passed to the underlying OS. If the OS is
case-sensitive then the two requests are different (maybe, if the apache
website was on a windows machine the example I quoted wouldn't work :-)
The conclusion is that, in general, URLs should be regarded as
case-sensitive. Incidentally, what about MailingListName etc.?

>Why in this day and age should it matter if you type a trailing 
>slash or not?

Because the slash is a directory delimiter. If you request
http://server/banana/mango how does the server know whether you want a
file called "mango" in the "banana" directory or a listing of the
directory banana/mango? In fact, apache looks first for a file called
mango in banana. If it doesn't find one but if it has a subdirectory
called mango, it issues a redirect to http://server/banana/mango/ (i.e.
it adds a trailing slash). The second request goes into the directory
banana/mango and returns either an index file (if one is defined and
found) or a directory lisiting (if allowed) or a 403 Forbidden.

However, all this is neither here not there as far as your problem is
concerned. Perhaps the answer is to use mod_rewrite. This allows you to
use case-insensitive pattern matching to rewrite URLs, e.g.

RewriteRule /mailinglistname.* "d:/www/lists/mailinglistname.html" [NC]

This will match all of the above aliases to the one resource (I think

Owen Boyle
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message