Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > one of 6 virtual hosts stopped

 
one of 6 virtual hosts stopped
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jul 12, 2003, 04:36 AM
 
I have a server running 10.2 Server. I always back up my web folder and my httpd.conf file. Today I had to reinstall and when I put my old httpd.conf file in there in place of the default one, one of my virtual hosts doesn't work. All of my other sites are www.blah.com, but they all have aliases for blah.com. The one that doesn't work is set up for blah.com, but doesn't work, and only work if you type www.blah.com, which isn't the real address and gives you problems with all the scripts. The others will work if you leave out the www though. I'm on the exact same version of OS X Server, I think (actually I might have gone from 10.2.4 to 10.2.6) I can't figure out why this one is being stuborn. Instead of loaind the site, it loads the very first virutal host i have listed in the config file, which has no name and is there to catch people who type just an ip, and give them a generic page. Any ideas?
     
Dedicated MacNNer
Join Date: Jul 2000
Location: Texas
Status: Offline
Jul 28, 2003, 01:58 PM
 
Originally posted by l008com:
I have a server running 10.2 Server. I always back up my web folder and my httpd.conf file. Today I had to reinstall and when I put my old httpd.conf file in there in place of the default one, one of my virtual hosts doesn't work. All of my other sites are www.blah.com, but they all have aliases for blah.com. The one that doesn't work is set up for blah.com, but doesn't work, and only work if you type www.blah.com, which isn't the real address and gives you problems with all the scripts. The others will work if you leave out the www though. I'm on the exact same version of OS X Server, I think (actually I might have gone from 10.2.4 to 10.2.6) I can't figure out why this one is being stuborn. Instead of loaind the site, it loads the very first virutal host i have listed in the config file, which has no name and is there to catch people who type just an ip, and give them a generic page. Any ideas?
Try turning off the performance cache for your virtual hosts.
---
One XP Box, One Suse Box, One Blue & White,
One ibook, One iMac 17 FP, one 30 gig iPod and a mini
happy .mac customer, os9 free since 3/24/01
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jul 28, 2003, 05:47 PM
 
What I did was set the default hostname in the config file, the one thats not in a virtual host container, to "localhost". I don't know why, but that did it, now all the virtual hosts work great.
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:48 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2