|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
Apache Problem
All my domains from VirtualHost are redirected to same documentroot (the documentroot of 1st VirtualHost
here is the sample from httpd.conf: Code:
<VirtualHost *:80> ServerName site1.com DocumentRoot /home/www/site1.com </VirtualHost> <VirtualHost *:80> ServerName site2.com DocumentRoot /home/www/site2.com </VirtualHost> What can be wrong? |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
Hosts file issue?
Or you could try: ServerAlias site1.com and ServerAlias site2.com in each virtual host?
__________________
Your post count means nothing. |
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
Quote:
i've added ServerAlias site1.com and ServerAlias site2.com in each virtual host but still redirect site2.com to site1.com |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
|
Have you restarted apache since the httpd configuration changes?
__________________
Perfect Gonzo |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
|
Post the whole httpd.conf file...
__________________
Perfect Gonzo |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
Quote:
sure i've restarted apache |
|
|
|
|
|
|
#7 |
|
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
It's acting like domain one is the hostname for the server, and the second host is just directing to the hostname directory. Neither is actually working.
![]() |
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Feb 2004
Location: United Kingdom
Posts: 575
|
Are u certain you've got defferent .html index files in each directory so you can tell the difference. Are you using different IP addresses for each domain if so are the details the same with bind and apache?
|
|
|
|
|
|
#10 | |
|
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
Quote:
ok.. this was wrong.. i've forgeted to add * to the serveralias.. now is working |
|
|
|
|