new virtual host not working.... ???
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > new virtual host not working.... ???




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    new virtual host not working.... ???  
Ian Diddams


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-15-04 01:46 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:09 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

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
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register