httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <...@as-guides.com>
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 <mlu@as-guides.com>:
>> 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:

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

> 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message