[ringzero] Re: (OT) Apache Named Virtual Hosting question

  • From: Robert C Wittig <wittig.robert@xxxxxxxxxxxxx>
  • To: ringzero@xxxxxxxxxxxxx
  • Date: Fri, 02 Feb 2007 15:42:21 -0600

ed wrote:
> On Fri, 02 Feb 2007 11:42:57 -0600
> Robert C Wittig <wittig.robert@xxxxxxxxxxxxx> wrote:
> 
>> What I want, is to have my dot-net files in one directory under /www
>> and my dot-org files in another directory under /www. The actual
>> directory is /var/www but Apache chroots to /www after startup.
> 
> the example your posted should do that
> 

Problem Solved!

Boy, was it ever simple...

Re-re-re-re-reading the Apache Manual, I suddenly noticed a line that said:

"If you are adding virtual hosts to an existing web server, you must 
also create a <VirtualHost> block for the existing host. The ServerName 
and DocumentRoot included in this virtual host should be the same as the 
global ServerName and DocumentRoot. List this virtual host first in the 
configuration file so that it will act as the default host."

Unfortunately, I had failed to change my Global ServerName from 
'supermicro.robertwittig.net' to 'www.supermicro.net'... which is what I 
had in the VirtualHost container.

As soon as I changed that, and restarted Apache... Zoom!

http://www.robertwittig.org/ brought up a single line...

'This is dot-org.'

...while robertwittig.net continued to bring up its regular site, and 
the eBay images that are residing on that machine.

Now, I can start moving some websites that I have been hosting for 
clients on GoDaddy, over to my server, which will save me some monthly 
GoDaddy fees.

Thanks, for all the suggestions, and moral support.

...and if a post like this shows up on the Yahoo 'Linux' list, just 
ignore it... I posted it yesterday, but it never showed up... probably 
got caught in a Yahoo Spam Trap.


-- 
-wittig http://www.robertwittig.com/
.       http://robertwittig.net/

-- 
You are receiving this message as part of your subscription to the
"ringzero" mailing list at freelists.org. To unsubscribe, send an e-mail
to ringzero-request@xxxxxxxxxxxxx?subject=unsubscribe

Other related posts: