Re: Setting DirectoryIndex to a Location?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bob Ionescu schrieb:
2009/1/9 Michael Ludwig <mlu@xxxxxxxxxxxxx>:
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux