This is a discussion on Virtual Hosts do not work within the Apache Web Server forums, part of the Web Server and Related Forums category; I have setup my apache2 like this (httpd2.conf, Mandrake 10.0) - and restarted before accessing the site. ### Main Configuration ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have setup my apache2 like this (httpd2.conf, Mandrake 10.0) - and
restarted before accessing the site. ### Main Configuration Section ### You really shouldn't change these settings unless you're a guru ### ServerRoot /etc/httpd/2.0 #ServerName localhost #LockFile /etc/httpd/httpd.lock PidFile /var/run/httpd.pid ErrorLog logs/error_log LogLevel debug #DocumentRoot /home/matthias/www NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot /home/matthias/www/localhost </VirtualHost> <VirtualHost *:80> ServerName www.local-cqa.de DocumentRoot /home/matthias/www/cqa </VirtualHost> However a both localhost and http://www.local-cqa.de/ result in: The requested URL /home/matthias/www/index.php was not found on this server. which is available..., but should not be accessed anyway. Since right now nothing works, I need advice what to tryout next! Matthias |
|
|||
|
On 2004-11-04, Matthias Pospiech <matthiasPUNKTpospiech@gmx.de> wrote:
><VirtualHost *:80> > ServerName localhost > DocumentRoot /home/matthias/www/localhost ></VirtualHost> > ><VirtualHost *:80> > ServerName www.local-cqa.de > DocumentRoot /home/matthias/www/cqa ></VirtualHost> Usually you need also a <Directory ...> block with the permissions required. Also, since both the "DocumentRoot" are pointing to your Home dir, be sure that the directory and all the parents directories are world-readable and world-executable. As root do chmod 755 /home /home/matthias /home/matthias/www > The requested URL /home/matthias/www/index.php was not found on > this server. Then it looks like your NameVirtualHost directive is not processed at all, since he refer to /www/ directly. Check the config file using apachectl configtest and check in the error_log if there are complaints about the configuration. Davide -- Microsoft is a cross between The Borg and the Ferengi. Unfortunately they use Borg to do their marketing and Ferengi to do their programming. --Simon Slavin |