Re: [users@httpd] URL Mapping or ReWriting Help

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

 



On 6/17/05, Andrew Mull <mull@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hello,
> 
> Hope this can be done.
> 
> What I am trying to figure out is how I can make a subdirectory of a
> site look like the document root for all of its files and
> subdirectories?
> 
> For example:
> 
> Say www.domain.com/test exists, and "www.domain.com" is a VirtualHost
> and "test" is a subdirectory of that VirtualHost's DocumentRoot.
> When entering that URL, I would like it to act as a separate site
> where if someone were to link to /images/whatever.gif or
> /anotherdirectory/test.html from any file in that directory it would
> actually access the /test/images or /test/anotherdirectory instead of
> /images and /anotherdirectory?

Because each request looks completely independent to apache, this is
not really possible.  There are various work-arounds, ranging in
complexity and effectiveness that I recently discussed on this list:
http://mail-archives.apache.org/mod_mbox/httpd-users/200506.mbox/%3ce498c16605060707316a8c14c@xxxxxxxxxxxxxx%3e

But as someone else said in the same thread, the best idea is probably
to fix your html pages.

Joshua.

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