UniTO/anno2/Sem1/mie/Sicurezza/esercizi/sicurezza2/sites-available/default-ssl.conf
2024-10-29 09:11:05 +01:00

28 lines
772 B
ApacheConf
Executable file

<IfModule mod_ssl.c>
<VirtualHost localhost:443>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/cssl
LogLevel info ssl:debug
ErrorLog ${APACHE_LOG_DIR}/error_c.log
CustomLog ${APACHE_LOG_DIR}/access_c.log combined
SSLEngine on
SSLCACertificateFile /etc/apache2/ssl/client_side_auth/ca.cer
SSLCertificateFile /etc/apache2/ssl/client_side_auth/server.cer
SSLCertificateKeyFile /etc/apache2/ssl/client_side_auth/server.key
SSLVerifyClient none
SSLOptions +StdEnvVars +ExportCertData
<Directory /var/www/html/cssl/>
SSLVerifyClient require
SSLVerifyDepth 10
#SSLOptions +FakeBasicAuth
</Directory>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet