httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] RewriteRule and VirtualDocumentRoot: How do they interract ?
Date Thu, 14 Jan 2010 18:53:09 GMT
On 1/14/10, Thomas Preud'homme <thomas.preudhomme@celest.fr> wrote:
> Greetings,
>
>  === Context ===
> What I don't understand is that after the substitution,
>  apache look for the file by prepending document_root (/htdocs on my server) to
>  the substitution. But I use VirtualDocumentRoot and no DocumentRoot so that my
>  files are usually accessed via the value of VirtualDocumentRoot.

See the PT flag + using a URL-path in your substitution instead of a
filesystem path.

PT is implicit in per-directory.  It's what allows "other" modules to
to a URL->filesystem mapping, otherwise they don't see the output of
your rewrite.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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