 |
 |
one of 6 virtual hosts stopped
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
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
|
|
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
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
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.
|
|
|
| |
|
|
|
 |
 |
|
 |
| |
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|