Mark
04-03-2001, 10:00 AM
Hi everyone,
I have a question about Name-Based virtual hosts in apache -- hoping there's an Apache expert who can help me out![nbsp][nbsp]
I have my httpd.conf file set-up (Not on FQ :) to serve up 2 domains from my server. Both domains have the same IP in DNS and I'm using Virtual Hosts to point each domain to the appropriate root directory:
ie: /www/ &
[nbsp][nbsp][nbsp][nbsp]/www/domain2/
and this works fine. And the user doesn't even know they are on a sub-directory of my main domain.
So, here's my question: If I want to do something like an internal redirect, but I WANT the URL in the browser location bar to stay:[nbsp][nbsp]www.domain1.com/domain2/ (http://www.domain1.com/domain2/) after the user is redirected from www.domain2.com (http://www.domain2.com) - is that a DNS issue or an Apache issue? In other words, I don't mind that after the user types in the URL, he is redirected to a sub-directory under my main domain and he can see that.
Any info would be appreciated!!!
Thanks!
Mark
I have a question about Name-Based virtual hosts in apache -- hoping there's an Apache expert who can help me out![nbsp][nbsp]
I have my httpd.conf file set-up (Not on FQ :) to serve up 2 domains from my server. Both domains have the same IP in DNS and I'm using Virtual Hosts to point each domain to the appropriate root directory:
ie: /www/ &
[nbsp][nbsp][nbsp][nbsp]/www/domain2/
and this works fine. And the user doesn't even know they are on a sub-directory of my main domain.
So, here's my question: If I want to do something like an internal redirect, but I WANT the URL in the browser location bar to stay:[nbsp][nbsp]www.domain1.com/domain2/ (http://www.domain1.com/domain2/) after the user is redirected from www.domain2.com (http://www.domain2.com) - is that a DNS issue or an Apache issue? In other words, I don't mind that after the user types in the URL, he is redirected to a sub-directory under my main domain and he can see that.
Any info would be appreciated!!!
Thanks!
Mark