Alright, first a little background on the issue. I am learning to set up my server to host virtual sites. Right now, I've only got two, to keep it simple. I decided to try something I picked up from an Apache book. It recommended to create three folders in each document root called production, development, and staging and to create a port-based virtual host for each folder so they could be worked on independently of each other. For example, the production folder was the primary folder so it didn't have a vhost config. I gave the development folder a vhost for port 8989, just to see if it would work. It did, of course. However, once I got around to putting in a vhost configuration for another site, Apache complained (in /var/log/messages):
Nov 6 11:17:22 sunshine-market httpd2: [Sat Nov 06 11:17:22 2004] [error] VirtualHost 16
18.104.22.168:8989 -- mixing * ports and non-* ports with a NameVirtualHost address is no
t supported, proceeding with undefined results
My vhost.conf file was set up as follows:
# port-based vhost for the development folder (primary site)
# name-based vhost for bluewillowherbs.biz site (secondary site)
My httpd2.conf file had it's document root set to /var/www/html/www.sunshine-market.com/production
Now that I think about it, would it not work to put 22.214.171.124:80 for my second VirtualHost container?
Anyway, back to my main issue! I decided to scrap that development/production stuff for the moment, so I removed my port-based vhost, told Apache to stop listening on port 8989, and changed my directory structure back to /var/www/html/www.sunshine-market.com without any dev/production folders.
I restarted Apache with apachectl restart. But when I looked at /var/log/messages, it said this:
Nov 6 14:23:44 sunshine-market httpd2: Warning: DocumentRoot [/var/www/html/www.sunshine-market.com/production] does not exist
It still starts up just fine, but I can't figure out why in the world it's still looking for that production folder. I've removed all references to it from all apache conf files that I know of. What's more, I can't even test my configuration because the DNS server at my ISP has been misconfigured. It's re-directing sunshine-market.com to bluewillowherbs.biz, which is my main vhost.
Besides that, can anyone explain the production folder issue?