Installare un ambiente LAMP: Linux, Apache2, SSL, MySQL, PHP5: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
m (→Configurazione dei Virtual Host: aggiunto nota DocumentRoot) |
|||
Riga 110: | Riga 110: | ||
Options Indexes FollowSymLinks MultiViews | Options Indexes FollowSymLinks MultiViews | ||
AllowOverride None | AllowOverride None | ||
Order allow,deny | |||
allow from all | # Fino a Debian Wheezy | ||
#Order allow,deny | |||
#allow from all | |||
# Da Debian Jessie | |||
Require all granted | |||
</Directory> | </Directory> | ||
Riga 120: | Riga 126: | ||
AllowOverride None | AllowOverride None | ||
Options None | Options None | ||
# Fino a Debian Wheezy | |||
#Order allow,deny | |||
#allow from all | |||
# Da Debian Jessie | |||
Require all granted | |||
</Directory> | </Directory> | ||
Riga 127: | Riga 139: | ||
AllowOverride None | AllowOverride None | ||
Options None | Options None | ||
Order allow,deny | |||
# Fino a Debian Wheezy | |||
#Order allow,deny | |||
#allow from all | |||
# Da Debian Jessie | |||
Require all granted | |||
</Directory> | </Directory> | ||
Riga 137: | Riga 155: | ||
Options Indexes MultiViews | Options Indexes MultiViews | ||
AllowOverride None | AllowOverride None | ||
Order allow,deny | |||
# Fino a Debian Wheezy | |||
#Order allow,deny | |||
#allow from all | |||
# Da Debian Jessie | |||
Require all granted | |||
</Directory> | </Directory> | ||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
'''NOTE''' | |||
* '''Da Debian Jessie (Apache 2.4.x)''': | * '''Da Debian Jessie (Apache 2.4.x)''': | ||
1) la ''DocumentRoot'' è /var/www/html/ | 1) la ''DocumentRoot'' è /var/www/html/ | ||
2) il controllo degli accessi Rule-Based prevede una configurazione differente: | |||
* per negare l'accesso alla directory a tutti: | * per negare l'accesso alla directory a tutti: | ||
<pre>Order deny,allow | <pre>Order deny,allow |