[ringzero] (OT) Apache Named Virtual Hosting question

  • From: Robert C Wittig <wittig.robert@xxxxxxxxxxxxx>
  • To: ringzero@xxxxxxxxxxxxx
  • Date: Fri, 02 Feb 2007 07:16:23 -0600

I have two websites, robertwittig.net and robertwittig.org. Both are
registered on GoDaddy, and pointing to my in-house web server,
supermicro.robertwittig.net (running Apache 1.3.29), and both have
standard 'www' aliases in the A (or is it C) Record on GoDaddy.

My public IP for the server is 70.142.248.61. This is on my
modem/router, where it is permanently associated 1 to 1, with the
private IP 192.168.1.10 (the supermicro server's IP).

There is a PF firewall up on the server (it is OpenBSD 3.9), but it is
fairly simple (I wrote all the rules myself, and the TCP rule for Port
80 permits all traffic in and out).

Right now, everything works ok, with the default, unmodified httpd.conf
file, so if you call either http://www.robertwittig.net/ or
http://www.robertwittig.org/ you get exactly the same pages, from the
same htdocs directory.

I saved the default httpd.conf file for back-up, and, following the info
at: http://httpd.apache.org/docs/1.3/vhosts/name-based.html (plus a few
other various tutorials, which all said the same thing)... I went ahead
and made exactly two changes to the httpd.conf file, adding:

------------------------------------
NameVirtualHost 192.168.1.10:80

------------------------------------

...and these...

------------------------------------
<VirtualHost 192.168.1.10:80>
     DocumentRoot /www/htdocs
     ServerName www.robertwittig.net
     </VirtualHost>

<VirtualHost 192.168.1.10:80>
     DocumentRoot /www/dotorg
     ServerName www.robertwittig.org
     </VirtualHost>
--------------------------------------

This did not work... after restarting Apache, neither website came up at
all... Server Not Found.

I tried with *:80 in place of 192.168.1.10:80 ...same result.

When I tried 70.142.248.61:80 (the external IP, on the router), I got
the robertwittig.net pages in /www/htdocs same as I did with the default
httpd.conf, before I made any changes, for both robertwittig.net and
robertwittig.org, and did not see the index.html file that I placed in
/www/dotorg, when I tried to access robertwittig.org.

I'm doing all my testing from another machine on my LAN, Red Hat
Enterprise, which routes through the NAT and firewall on the router used
for Desktop machines.

I suspect that I am missing something obvious, but after a full day of
reading, testing, etc.,  I figured it was time to start asking around,
figuring that I am 'chess blind'... looking at the solution, and not
'seeing' it.

Thanks in advance for any suggestions.


-- 
-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: