httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <>
Subject Re: [users@httpd] Setting DirectoryIndex to a Location?
Date Mon, 12 Jan 2009 15:07:35 GMT
Bob Ionescu schrieb:
> 2009/1/9 Michael Ludwig <>:
>> I think here's what happens: By the time Apache has decided,
>> following the Alias, to use the <Directory> container to locate the
>> requested resource, it is already tied to the filesystem context; and
>> it is now too late to take any <Location> containers into account.
> The location walk will be processed (again) after the directory and
> file walk.

So my assumption was wrong. Does anyone know in which document this
behaviour is described?

> But mod_dir checks, if it is a regular file. What about
> creating the file as a dummy?

You mean an index.html as redirector? This works, of course:

     <meta http-equiv="refresh" content="0; url=linch">
   <body><h1>Weiter zu Eumel</h1></body>

> Anyway, I would probably end up using something like
> RewriteEngine on
> RewriteRule ^/eumel/$ /eumel/linch [PT]
> Alias /eumel /home/milu/www/eumel/www
> <Directory ......
> The PT flag changes r->uri to /eumel/linch so that your location
> section should match.

This works as well. Thanks a lot!

Michael Ludwig

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