Re: Setting DirectoryIndex to a Location?

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

 



Bob Ionescu schrieb:
2009/1/12 Michael Ludwig <mlu@xxxxxxxxxxxxx>:
Bob Ionescu schrieb:
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?

http://httpd.apache.org/docs/2.2/sections.html#mergin

Thanks. This helps a bit. But I still don't quite understand the
meaning of "be applied" and "be evaluated" in this section. Does this
refer to the merging, so that late-comers override earlier directives?
Or does it apply to matching an incoming request, where the first match
gets to handle the request? The examples given in this document seem to
imply the first version is true.

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?

No, just the filename you gave in DirctoryIndex. It won't be served
due to your Handler setting but acts as a dummy for the requirement of
mod_dir (existing file).

That's surprising. I would have expected the dummy file to be served.

http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex

Given that an existing file has been found, why not serve it up straight
away? Why continue looking for a handler when the file is found on disk,
and *not* look for a handler when no file is found? Maybe that's just
me, but I find this behaviour a little counter-intuitive. But hey, if it
works.

But the way via DirctoryIndex and mod_dir causes a subrequest lookup
for the index file, which you can avoid with the RewriteRule of
course.

I see the advantage. Thank you!

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