ho un problema con apache2 e non so più dove sbattere a testa. Ho una distribuzione server virtualizzata, apache installato correttamente, riesco ad accedere alla pagina di "benvenuto" di apache tramite il browser del mio computer. Tutto di base funziona correttamente. Ho creato un virtual host chiamato pippo.local, il file di configurazione pippo.local.conf in /etc/apache2/sites-available/ è:
Codice: Seleziona tutto
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerAdmin webmaster@pippo.local
ServerName pippo.local
ServerAlias pippo.local
DocumentRoot /var/www/pippo.local/public_html/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
<Directory /var/www/pippo.local/public_html/>
Order Deny,Allow
Allow from all
Options -Indexes
</Directory>
<Directory "/var/www/pippo.local/cgi-bin">
AllowOverride None
#Options ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
Options +SymLinksIfOwnerMatch +ExecCGI +Includes +IncludesNOEXEC -Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Questo invece è il file /etc/apache2/ports.conf
Codice: Seleziona tutto
Listen 80
<VirtualHost *:80>
DocumentRoot /var/www/pippo.local/
ServerName pippo.local
# Other directives here
</VirtualHost>
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Grazie