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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-19-2005, 12:26 PM   #1
alex79
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>
But both site1.com and site2.com requests are redirected to /home/www/site1.com

What can be wrong?
__________________

Last edited by alex79; 08-19-2005 at 12:28 PM..
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:29 PM   #2
psili
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.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:37 PM   #3
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by psili
Hosts file issue?
Or you could try:

ServerAlias site1.com

and ServerAlias site2.com

in each virtual host?

i've added ServerAlias site1.com and ServerAlias site2.com in each virtual host but still redirect site2.com to site1.com
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:38 PM   #4
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Have you restarted apache since the httpd configuration changes?
__________________
Perfect Gonzo
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:39 PM   #5
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Post the whole httpd.conf file...
__________________
Perfect Gonzo
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:40 PM   #6
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by broke
Have you restarted apache since the httpd configuration changes?

sure i've restarted apache
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:42 PM   #7
chaze
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.
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:44 PM   #8
tgpmakers
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?
__________________
http://www.tgpmakers.com/
tgpmakers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:47 PM   #9
E Guru
Confirmed User
 
Join Date: Jul 2005
Posts: 658
are you typing www when you visit the site?
add *.domain.com to server alias
__________________
Guru
E Guru is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 12:52 PM   #10
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by E Guru
are you typing www when you visit the site?
add *.domain.com to server alias

ok.. this was wrong.. i've forgeted to add * to the serveralias.. now is working
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.