UniTO/anno2/mie/Sicurezza/esercizi/sicurezza2/sites-available/000-default.conf
Francesco Mecca 87dc8ebb6a sicurezza 29
2019-02-07 00:11:49 +01: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>