UniTO/anno2/Sem1/mie/Sicurezza/esercizi/sicurezza2/sites-available/000-default.conf
Francesco Mecca 015f8ad739 scpd no git
2019-05-20 20:33:58 +02:00

48 lines
1.2 KiB
Text

<VirtualHost localhost:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Location /protected>
AuthType Basic
AuthName "realm"
AuthBasicProvider file
AuthUserFile /etc/apache2/passwd
require valid-user
</Location>
<Location /es_ldap>
</Location>
</VirtualHost>
<VirtualHost localhost:8443>
ServerName sito2
DocumentRoot /var/www/html/assl
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server/server.key
SSLCertificateChainFile /etc/apache2/ssl/UnitoSigningCA1/ca.db.certs/01.pem
SSLVerifyClient none
SSLVerifyDepth 1
SSLCACertificateFile ssl/UnitoSigningCA1/signing-ca-1.crt
<Location />
AuthType Basic
AuthName “plumbers”
AuthBasicProvider file
AuthUserFile /etc/apache2/passwd
Require user mario
</Location>
</VirtualHost>
<VirtualHost localhost:9443>
ServerName sito3
DocumentRoot /var/www/html/es_ldap
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server/server.key
SSLCertificateChainFile /etc/apache2/ssl/UnitoSigningCA1/ca.db.certs/01.pem
SSLVerifyClient none
SSLVerifyDepth 1
SSLCACertificateFile ssl/UnitoSigningCA1/signing-ca-1.crt
</VirtualHost>