roberto ha scritto:
> I'm a newbie with Apache and I'm trying to configure two virtual hosts
> in my server, but I always get the test page when I try to connect tho
> them.
> I first tried to configure Apache with redhat-config-httpd (I'm running
> RH Enterprise Linux WS), then I resumed the original
> /etc/httpd/conf/httpd.conf and I changed it with these lines :
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost 192.168.0.254:80
>
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a known
> # server name.
>
> <VirtualHost 192.168.0.254>
> # ServerAdmin webmaster DeleteThis @dummy-host.example.com
> DocumentRoot /var/www/moodle
> ServerName moodle.ceismo.org
> ErrorLog logs/moodle-error_log
> CustomLog logs/moodle-access_log common
> </VirtualHost>
>
> <VirtualHost 192.168.0.254>
> # ServerAdmin webmaster DeleteThis @dummy-host.example.com
> DocumentRoot /var/www/phpmyadmin
> ServerName pma.esolver.it
> ErrorLog logs/pma-error_log
> CustomLog logs/pma-access_log common
> </VirtualHost>
>
> Issuing httpd -S gives this :
> VirtualHost configuration:
> 192.168.0.254:80 is a NameVirtualHost
> default server moodle.ceismo.org (/etc/httpd/conf/httpd.conf:1032)
> port 80 namevhost moodle.ceismo.org
> (/etc/httpd/conf/httpd.conf:1032)
> port 80 namevhost pma.esolver.it (/etc/httpd/conf/httpd.conf:1040)
> wildcard NameVirtualHosts and _default_ servers:
> _default_:443 192.168.0.254 (/etc/httpd/conf.d/ssl.conf:101)
> Syntax OK
>
> Can someone help me?
>
> Roberto
>
I forgot the message in error.log:
[Mon Jun 07 16:46:23 2004] [error] [client 127.0.0.1] Directory index
forbidden by rule: /var/www/html/
bye<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: strange virtual host problem