[Gllug] Apache virtual host problem

Garry Heaton garry at usableit.co.uk
Mon Aug 13 01:12:44 UTC 2007


CentOS 5
Apache 2.2.3


I've configured Apache with virtual hosting to run 3 domains, 2 pointing to:

/var/www/html/danny

.... and the 3rd pointing to:

/var/www/html/richmond

However, all requests for www.therichmondstudio.co.uk return pages from the 
other domain: www.dannyisrael.co.uk

??

The domain 'therichmondstudio.co.uk' correctly resolves to the same IP as 
the server machine as you can see from the 'dig' commands listed below.

Garry


*************** httpd config ******************************

ServerName danisrael.vm.bytemark.co.uk:80

NameVirtualHost *:80

<VirtualHost *:80>
     ServerName www.therichmondstudio.co.uk
     ServerAdmin garry at usableit.co.uk
     DocumentRoot /var/www/html/richmond
</VirtualHost>

<VirtualHost *:80>
     ServerName www.dannyisrael.com
     ServerAdmin garry at usableit.co.uk
     DocumentRoot /var/www/html/danny
</VirtualHost>

<VirtualHost *:80>
     ServerName www.dannyisrael.co.uk
     ServerAdmin garry at usableit.co.uk
     DocumentRoot /var/www/html/danny
</VirtualHost>


*********************************************************
; <<>> DiG 9.3.3rc2 <<>> danisrael.vm.bytemark.co.uk
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6970
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;danisrael.vm.bytemark.co.uk.   IN      A

;; ANSWER SECTION:
danisrael.vm.bytemark.co.uk. 86400 IN   A       80.68.88.120

**********************************************************

; <<>> DiG 9.3.3rc2 <<>> therichmondstudio.co.uk
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36335
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;therichmondstudio.co.uk.       IN      A

;; ANSWER SECTION:
therichmondstudio.co.uk. 86400  IN      A       80.68.88.120

***********************************************************








-- 
*****************************************************
www.usableit.co.uk
Web Development, Networking & System Administration
*****************************************************





-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list