Buongiorno a tutti, mi servirebbe 1 aiuto con Apache 2.0. Ho provato a utilizzare il virtual hosting name-based e ho creato 2 home page diverse a seconda dell'indirizzo da cui vengono raggiunte (tutto in locale, x esperimenti miei). I due percorsi delle home page sono rispettivamente quello di default (/var/www/html/index.html) raggiungibile da www.ecaricati.it e un'altra pagina (/home/stefano/sito_alternativo_apache/sito_alternativo.html) raggiungibile da www.alternativo.it.
Se metto nella barra degli indirizzi localhost, 127.0.0.1, 192.168.0.34, oppure www.ecaricati.it mi appare la home giusta ma se digito www.alternativo.it mi appare il msg "Forbidden You don't have permission to access / on this server. Additionally a 403 Forbidden Error was encountered while trying to use an ErrorDocument to handle the request".
Vi riporto sotto 1 stralcio di httpd.conf:
#
# Use name-based virtual hosting.
#
# 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.34>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html
DirectoryIndex index.html
ServerName www.ecaricati.it
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log common
</VirtualHost>
<VirtualHost 192.168.0.34>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/stefano/sito_alternativo_apache
DirectoryIndex sito_alternativo.html
ServerName www.alternativo.it
ErrorLog /home/stefano/sito_alternativo_apache/error_log
CustomLog /home/stefano/sito_alternativo_apache/access_log common
<Directory /home/stefano/sito_alternativo_apache>
Options All Multiviews
AllowOverride All
Order allow,deny
Allow from 192.168.0.34
</Directory>
</VirtualHost>
Chi mi sa aiutare x favore? Grazie