| Ian Diddams 2004-08-14, 8:46 pm |
| In have a local webserver, serving a couple of sites happily, using
virtual hosting. local dns defines both domains for the same ip for
their "www" records.
all is OK :-)
I've just added a 3rd domain in dns (www defined as same address as
the other two), I've set up the virtual host directives in httpd.conf,
and restarted dns and apache. I've also alrteady created the
necessary document root with appropriate index.html
But the new domain/url doesn't load... I must be missing something
tricial!!
<VirtualHost *:80>
ServerName www.xxx.org.uk
DocumentRoot /usr/local/apache2/htdocs/xxx
ServerAdmin webmaster@xxx.org.uk
ErrorLog logs/xxx.org.uk-error_log
CustomLog logs/xxx.org.uk-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerName www.xxx.me.uk
DocumentRoot /usr/local/apache2/htdocs/xme
ServerAdmin ian@xxx.org.uk
ErrorLog logs/xxx.me.uk-error_log
CustomLog logs/xxx.me.uk-access_log common
</VirtualHost>
also
# nslookup
> www.xxx.org.uk
Server: 192.168.100.4
Address: 192.168.100.4#53
Name: www.xxx.org.uk
Address: 192.168.100.3
> www.xxx.me.uk
Server: 192.168.100.4
Address: 192.168.100.4#53
Name: www.diddams.me.uk
Address: 192.168.100.3
>
also....
#pwd
/usr/local/apache2/htdocs
# ls
apache_pb2_ani.gif apache_pb2.png apache_pb.png xme
apache_pb2.gif apache_pb.gif xxx index.html
"xme" is a direct copy, contents and all of "xxx"
www.xxx.org.uk loads immediately.... but www.xxx.me.uk doesn't ...
Finally I'd check the logs ... but... despite all the above....
# pwd
/usr/local/apache2/logs
-rw-r--r-- 1 root root 33290 Mar 26 13:27 access_log
-rw-r--r-- 1 root root 0 Aug 15 00:27
xxx.me.uk-access_log
-rw-r--r-- 1 root root 0 Aug 15 00:27
xxx.me.uk-error_log
-rw-r--r-- 1 root root 3851473 Aug 15 00:41
xxx.org.uk-access_lo
g
-rw-r--r-- 1 root root 13719 Aug 10 23:34
xxx.org.uk-error_log
-rw-r--r-- 1 root root 6140 Aug 15 00:55 error_log
-rw-r--r-- 1 root root 5 Aug 15 00:55 httpd.pid
ie the www.xxx.me.uk logs are empty...
what I am stuffing up?
ian
|