Re: [users@httpd] Only redirecting, but not changing the root?

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

 



On 12/13/05, Lennart Aangeenbrug <lennart@xxxxxxxxxxxxxxx> wrote:
> Hi all,
>
> Yesterday i've posted a question and no one replyed :-( Maybe i
> explained it not clear enough or is it not solvable. Here is my question
> again in another words:
>
> How can I forward an user to a specific location, > without < changing
> the root? For example:
> www.example1.com == goes to ==> public_html/example1/, the root stays
> public_html/
> www.example2.com == goes to ==> public_html/example2/, the root stays
> public_html/
> www.example3.com == goes to ==> public_html/example3/, the root stays
> public_html/
>
> The root public_html contains nothing more than a .htaccess file. It
> should recognize which domain is adressed and then send it to the right
> dir. Why I want this? I keep in the dir  public_html/ several other
> dirs, like graphic & tools I need for all sites.

I would do this as follows:

Assuming you have the following under public_html

public_html/example1
public_html/example2
public_html/example3
public_html/example4
public_html/.htaccess
public_html/graphics
public_html/tools

What I would do is in each of the exampleN directories I would make
links to the common .htaccess, graphics and tools directory (or maybe
group them all under a "common" dir, and link that) and than make a
virtual host for each of your example domains, with the example dir as
document root.

Krist

--
krist.vanbesien@xxxxxxxxx
Solothurn, Switzerland

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