Open GoogleCodeExporter opened 9 years ago
I will configure Apache 2.2 and attempt to verify this.
When you say "Serving a file through the alias fails", could you explain more
fully what you mean? Did Apache fail to find the file where the Alias said it
should?
When an Apache Alias directive applies to a request, the Alias determines where
the file is. No document root (neither the original per DocumentRoot, nor the
replacement supplied by a DBDocRoot query) applies to the request.
See: http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
"Alias ... allows documents to be stored in the local filesystem other than
under the DocumentRoot".
Original comment by Thomas.D...@gmail.com
on 12 Feb 2013 at 12:20
Yes, it could not find the file at the location where the Alias said it should.
I tried it a couple of times, by commenting out the DBDocRoot directive. When
its commented out the alias works, as soon as I uncomment it, I get an error.
Original comment by ashishpa...@gmail.com
on 12 Feb 2013 at 12:30
Confirmed with httpd-2.2.21 on Windows.
Similar to issue #6 - interaction with other modules which also translate URIs
to filenames. There is no practical way to influence all other
name-translation modules in a predictable way.
The most practical fix is to disable any docroot lookup if any other module
(e.g. mod_rewrite, mod_alias, mod_proxy, mod_userdir, mod_vhost_alias, etc.)
has already set a directory or a full path for the request. In other words -
mod_vhost_dbd will run last, and will only perform a query and set a docroot if
no other module has already selected a file path for the request.
Testing code change (small/easy) and writing doc change (bigger/harder).
Unfortunately, this change may break some existing apps which depend on
interaction between mod_vhost_dbd and mod_rewrite.
Original comment by Thomas.D...@gmail.com
on 12 Feb 2013 at 6:35
Issue 6 has been merged into this issue.
Original comment by Thomas.D...@gmail.com
on 12 Feb 2013 at 6:36
Original issue reported on code.google.com by
ashishpa...@gmail.com
on 11 Feb 2013 at 12:42