On Sun, 2004-03-21 at 11:59, [EMAIL PROTECTED] wrote: > John, > > Just wondering is the default apache DocumentRoot /var/www/html ? > If that is the case you might have a conflict between the default > and virtual hosts. > > I would advise you to activate logging in your virtualhost so you > can see what is going on. > > my suggestion would be > > <VirtualHost *> > ServerName www.mcquillen.bur.st > DocumentRoot /var/www/new > </VirtualHost> > Not that the workaround for this is painful or anything :) but I'd really like to nut this out, so...
The default DocumentRoot is set to /var/www/html in /etc/httpd/conf/httpd2.conf My understanding, however, was that with name based virtual hosts, the DocumentRoot set by apache is ignored, so that all servers must be configured as virtual. Is that the case? The only reason that I have this particular vhost set up is that I have another one 'davidtrotteris40.brain.bur.st' set up on the same server. Here is what the log returns for each case. Interesting that without the trailing slash - 301 permanent redirect. ... "GET /admin/phpMyAdmin HTTP/1.1" 301 387 "-" "Mozilla/5.0 ... ... "GET /admin/phpMyAdmin/ HTTP/1.1" 200 6673 "-" "Mozilla/5.0 ... It seems that I have fixed it though, by creating a new virtual host for localhost rather than having localhost as an alias for www.mcquillen.bur.st ... <VirtualHost *> ServerName localhost.localdomain ServerAlias localhost DocumentRoot /var/www/html </VirtualHost> With this configuration I get the same behaviour, however the redirect to localhost.localdomain is, of course, successful: ... "GET /admin/phpMyAdmin HTTP/1.1" 301 389 "-" "Mozilla/5.0 ... ... "GET /admin/phpMyAdmin/ HTTP/1.1" 200 6685 "-" "Mozilla/5.0 ... Thanks for your help. Cheers, John... -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
