-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 fellow gentoo users,
I've been struggling with this for a while and I'm sure its something small but I can't see it. Basic problem is that all the Named VirtualHosts that I have set up in the /etc/apache2/vhosts/vhosts.conf are served off the first virtual host's directory. Apache2 config ( /etc/apache2/conf/apach2.conf ) has: #DocumentRoot commented out and further down Include conf/vhosts/vhosts.conf CustomLog logs/access_log combined vhosts conf ( /etc/apache2/conf/vhosts/vhosts.conf) has NameVirtualHost *:80 Setenv VLOG /home/httpd/htdocs/logs <VirtualHost *> ServerName atmosphere.local ServerPath /home/vhosts/atmosphere DocumentRoot /home/vhosts/atmosphere/htdocs .. (other directory and script alias options </VirtualHost> <VirtualHost *> ServerName frog.local ServerPath /home/httpd DocumentRoot /home/httpd/htdocs .. (other directory and script alias options </VirtualHost> <VirtualHost *> ServerName test2.local DocumentRoot /home/vhosts/test2/htdocs ... </VirtualHost> My /etc/hosts contains the dns entries for test2.local atmosphere.local frog.local as such: 10.10.10.1 frog.local frog # for virtual web servers 10.10.10.1 atmosphere.local test1.local test2.local A server request looks like: (Note tailing dots are hidden characters -this is cut from ethereal) GET /Web/Web.htm HTTP/1.1. User-Agent: Opera/7.11 (Linux 2.4.20-gentoo-r6 i686; U) [en]. Host: frog.local. Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1. Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1. Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0. Connection: Keep-Alive, TE. TE: deflate, gzip, chunked, identity, trailers. . and the response: HTTP/1.1 200 OK. Date: Tue, 21 Oct 2003 09:09:06 GMT. Server: Apache/2.0.47 (Gentoo/Linux) mod_ssl/2.0.47 OpenSSL/0.9.6j PHP/4.3.3. Last-Modified: Mon, 19 May 2003 22:51:09 GMT. ETag: "390020-2bb9-3b01f140". Accept-Ranges: bytes. Content-Length: 11193. Which looks fine however there should be an error response. The directories look like: bash-2.05b# find /home/httpd/htdocs/Web find: /home/httpd/htdocs/Web: No such file or directory bash-2.05b# find /home/vhosts/atmosphere/htdocs/Web /home/vhosts/atmosphere/htdocs/Web.htm so the request for frog.local/Web/Web.htm is mapped to /home/vhosts/atmosphere/htdocs/Web/Web.htm which is different from the vhost configuration for frog.local (Docroot = /home/httpd/htdocs/). The access log goes something like this: 10.10.10.1 - - [21/Oct/2003:18:39:06 +091800] "GET /Web/Web.htm HTTP/1.1" 200 11193 "-" "Opera/7.11 (Linux 2.4.20-gentoo-r6 i686; U) [en]" Is the client request of "Host: frog.local" being ignored? Using Konqueror gets the same results: GET /Web/Web.htm HTTP/1.1. Connection: Keep-Alive. User-Agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux; X11; i686; en_US). Pragma: no-cache. Cache-control: no-cache. Accept: text/html, image/jpeg, image/png, text/*, image/*, */*. Accept-Encoding: x-gzip, x-deflate, gzip, deflate, identity. Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5. Accept-Language: en. Host: frog.local. . HTTP/1.1 200 OK. Date: Tue, 21 Oct 2003 09:25:57 GMT. .... These request are not going through a proxy server and are the inital requests off the web browsers. Any guidance much apprecated. Any suggestions for testing mechanisms also welcome. BTW I know this configuration volates GLEP11 I'm going to move it back some time I was just running out of space on the root partition. Thanks in advance, Daniel Black - -- Proudly a Gentoo User. GnuPG/PGP signed and encrypted email preferred http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/lP9RTDSbtjKmTcgRAlBQAJ4sN4tUnQ/V+ag77MVXEHSDP+AomQCfZmo+ MWobqG5mWAoNjUJ5VRZY2EI= =EC1n -----END PGP SIGNATURE----- -- [EMAIL PROTECTED] mailing list