4 069
contributi
(3 versioni intermedie di uno stesso utente non sono mostrate) | |||
Riga 13: | Riga 13: | ||
* I record DNS dei due domini www.esempio.it e www.esempio.org devono essere configurati per puntare all'indirizzo IP pubblico del nostro server Apache, nel nostro caso 192.168.1.1 | * I record DNS dei due domini www.esempio.it e www.esempio.org devono essere configurati per puntare all'indirizzo IP pubblico del nostro server Apache, nel nostro caso 192.168.1.1 | ||
* Sul server in questione deve essere installato e funzionante un server Apache. Si segua ad esempio una di queste guide: [[Installare un ambiente LAMP: Linux, Apache2, SSL, MySQL, PHP5]] oppure [[Installare un ambiente LAMP: Linux, Apache2, SSL, MySQL, PHP5 - Stretch]] | * Sul server in questione deve essere installato e funzionante un server Apache. Si segua ad esempio una di queste guide: [[Installare un ambiente LAMP: Linux, Apache2, SSL, MySQL, PHP5]] oppure [[Installare un ambiente LAMP: Linux, Apache2, SSL, MySQL, PHP5 - Stretch]] | ||
<br/> | |||
{{Warningbox|La guida è compatibile anche con Debian Stretch, basta tener presente che la directory web root di Apache è diventata <tt>/var/www/html</tt>. Questo valore va quindi sostituito, nel resto della guida, al valore presentato: <tt>/var/www</tt>.}} | {{Warningbox|La guida è compatibile anche con Debian Stretch, basta tener presente che la directory web root di Apache è diventata <tt>/var/www/html</tt>. Questo valore va quindi sostituito, nel resto della guida, al valore presentato: <tt>/var/www</tt>.}} | ||
Riga 62: | Riga 62: | ||
<Directory /var/www/esempio.it/> | <Directory /var/www/esempio.it/> | ||
Options -Indexes -FollowSymLinks MultiViews | Options -Indexes -FollowSymLinks +MultiViews | ||
AllowOverride All | AllowOverride All | ||
# Da Stretch | |||
Require all granted | |||
#Require ip 10.0.0.0/24 | |||
#Require local | |||
# Fino a Jessie | |||
Order allow,deny | Order allow,deny | ||
Allow from all | Allow from all | ||
Riga 151: | Riga 158: | ||
Options -Indexes -FollowSymLinks MultiViews | Options -Indexes -FollowSymLinks MultiViews | ||
AllowOverride All | AllowOverride All | ||
# Da Stretch | |||
Require all granted | |||
#Require ip 10.0.0.0/24 | |||
#Require local | |||
# Fino a Jessie | |||
Order allow,deny | Order allow,deny | ||
Allow from all | Allow from all | ||
#Allow from 10.0.0.0/24 | #Allow from 10.0.0.0/24 | ||
#Allow from 192.168.90.0/24 | #Allow from 192.168.90.0/24 | ||