You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lennart Aangeenbrug <le...@aangeenbrug.org> on 2005/12/13 09:26:19 UTC
[users@httpd] Only redirecting, but not changing the root?
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.
gr, Lennart
---------------------------------------------------------------------
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
Re: [users@httpd] Only redirecting, but not changing the root?
Posted by Krist van Besien <kr...@gmail.com>.
On 12/13/05, Lennart Aangeenbrug <le...@aangeenbrug.org> 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@gmail.com
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org