4 069
contributi
S3v (discussione | contributi) mNessun oggetto della modifica |
|||
Riga 38: | Riga 38: | ||
# www.esempio.it | # www.esempio.it | ||
# | # | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerAdmin webmaster@esempio.it | ServerAdmin webmaster@esempio.it | ||
ServerName www.esempio.it | ServerName www.esempio.it | ||
ServerAlias esempio.it | ServerAlias esempio.it | ||
# Indexes + Directory Root. | # Indexes + Directory Root. | ||
DirectoryIndex index.html index.htm index.php | DirectoryIndex index.html index.htm index.php | ||
DocumentRoot /var/www/www.esempio.it/www/ | DocumentRoot /var/www/esempio.it/ | ||
Alias /phpmyadmin /usr/share/phpmyadmin | |||
Alias /mailmanager /var/www/mailmanager | |||
<Directory /> | |||
Options FollowSymLinks | |||
AllowOverride All | |||
</Directory> | |||
<Directory /var/www/esempio.it/> | |||
Options -Indexes -FollowSymLinks MultiViews | |||
AllowOverride All | |||
Order allow,deny | |||
Allow from all | |||
#Allow from 10.0.0.0/24 | |||
#Allow from 192.168.90.0/24 | |||
############### | |||
# Drupal Conf # | |||
############### | |||
# Da usare se il Virtual Host usa Drupal | |||
#RewriteEngine on | |||
#RewriteBase / | |||
#RewriteCond %{REQUEST_FILENAME} !-f | |||
#RewriteCond %{REQUEST_FILENAME} !-d | |||
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] | |||
#<ifModule mod_security2.c> | |||
# SecRuleEngine off | |||
#</ifModule> | |||
################### | |||
# End Drupal Conf # | |||
################### | |||
</Directory> | |||
#################### | |||
# Webalizer Conf ## | |||
#################### | |||
#<Directory /var/www/esempio.it/webalizer/> | |||
#Options Indexes FollowSymLinks MultiViews | |||
#AllowOverride None | |||
#Order allow,deny | |||
#Allow from all | |||
#Allow from 10.0.0.0/24 | |||
#Allow from 192.168.90.0/24 | |||
#Autenticazione | |||
#AuthType Digest | |||
#AuthName "utente" | |||
#AuthUserFile /var/www/esempio.it/www/webalizer/.htpasswd | |||
#require valid-user | |||
#</Directory> | |||
###################### | |||
# End Webalizer Conf # | |||
###################### | |||
# CGI Directory | # CGI Directory | ||
ScriptAlias /cgi-bin/ /var/www/ | #ScriptAlias /cgi-bin/ /var/www/esempio.it/cgi-bin/ | ||
<Location /cgi-bin> | #<Location /cgi-bin> | ||
# Options +ExecCGI | |||
</Location> | #</Location> | ||
# Logfiles | |||
# Ricordarsi di creare la directory | |||
ErrorLog /var/log/apache2/www.esempio.it/error.log | |||
CustomLog /var/log/apache2/www.esempio.it/access.log combined | |||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
Riga 75: | Riga 134: | ||
# Indexes + Directory Root. | # Indexes + Directory Root. | ||
DirectoryIndex index.html index.htm index.php | DirectoryIndex index.html index.htm index.php | ||
DocumentRoot /var/www/www.esempio.org/www/ | DocumentRoot /var/www/esempio.org/ | ||
Alias /phpmyadmin /usr/share/phpmyadmin | |||
Alias /mailmanager /var/www/mailmanager | |||
<Directory /> | |||
Options FollowSymLinks | |||
AllowOverride All | |||
</Directory> | |||
<Directory /var/www/esempio.org/> | |||
Options -Indexes -FollowSymLinks MultiViews | |||
AllowOverride All | |||
Order allow,deny | |||
Allow from all | |||
#Allow from 10.0.0.0/24 | |||
#Allow from 192.168.90.0/24 | |||
############### | |||
# Drupal Conf # | |||
############### | |||
# Da usare se il Virtual Host usa Drupal | |||
#RewriteEngine on | |||
#RewriteBase / | |||
#RewriteCond %{REQUEST_FILENAME} !-f | |||
#RewriteCond %{REQUEST_FILENAME} !-d | |||
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] | |||
#<ifModule mod_security2.c> | |||
# SecRuleEngine off | |||
#</ifModule> | |||
################### | |||
# End Drupal Conf # | |||
################### | |||
</Directory> | |||
#################### | |||
# Webalizer Conf ## | |||
#################### | |||
#<Directory /var/www/esempio.org/webalizer/> | |||
#Options Indexes FollowSymLinks MultiViews | |||
#AllowOverride None | |||
#Order allow,deny | |||
#Allow from all | |||
#Allow from 10.0.0.0/24 | |||
#Allow from 192.168.90.0/24 | |||
#Autenticazione | |||
#AuthType Digest | |||
#AuthName "utente" | |||
#AuthUserFile /var/www/esempio.org/www/webalizer/.htpasswd | |||
#require valid-user | |||
#</Directory> | |||
###################### | |||
# End Webalizer Conf # | |||
###################### | |||
# CGI Directory | # CGI Directory | ||
ScriptAlias /cgi-bin/ /var/www/ | #ScriptAlias /cgi-bin/ /var/www/esempio.org/cgi-bin/ | ||
<Location /cgi-bin> | #<Location /cgi-bin> | ||
# Options +ExecCGI | |||
</Location> | #</Location> | ||
# Logfiles | |||
# Ricordarsi di creare la directory | |||
ErrorLog /var/log/apache2/www.esempio.org/error.log | |||
CustomLog /var/log/apache2/www.esempio.org/access.log combined | |||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> |