prazision
25-09-2004, 15:17
Ho da fare un esercizio:
- Cambiare un virtual host non sicuro in uno sicuro
apro httpd.conf di apache
ammettiamo che il virtual host sia
<VirtualHost 10.0.0.32:80>
ServerAdmin webmaster@ciao.biz
DocumentRoot /www/mirko/lycia.ciao.biz
ServerName lycia.ciao.biz
ServerPath /lycia.ciao.biz
ScriptAlias /cgi-bin/ "/www/mirko/lycia.ciao.biz-cgi-bin/"
ErrorLog /var/log/httpd/apache/lycia.ciao.biz-error_log
CustomLog /var/log/httpd/apache/lycia.ciao.biz-access_log common
</VirtualHost>
lo modifico con:
<VirtualHost 10.0.0.32:443>
ServerAdmin webmaster@ciao.biz
DocumentRoot /www/mirko/lycia.ciao.biz
ServerName lycia.ciao.biz
ServerPath /lycia.ciao.biz
ScriptAlias /cgi-bin/ "/www/mirko/lycia.ciao.biz-cgi-bin/"
ErrorLog /var/log/httpd/apache/lycia.ciao.biz-error_log
CustomLog /var/log/httpd/apache/lycia.ciao.biz-access_log common
TransferLog /var/log/httpd/access_log
SSLEngine on
SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
praticamente ho aggiunto:
TransferLog /var/log/httpd/access_log
SSLEngine on
SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
E'corretto???
grazie
- Cambiare un virtual host non sicuro in uno sicuro
apro httpd.conf di apache
ammettiamo che il virtual host sia
<VirtualHost 10.0.0.32:80>
ServerAdmin webmaster@ciao.biz
DocumentRoot /www/mirko/lycia.ciao.biz
ServerName lycia.ciao.biz
ServerPath /lycia.ciao.biz
ScriptAlias /cgi-bin/ "/www/mirko/lycia.ciao.biz-cgi-bin/"
ErrorLog /var/log/httpd/apache/lycia.ciao.biz-error_log
CustomLog /var/log/httpd/apache/lycia.ciao.biz-access_log common
</VirtualHost>
lo modifico con:
<VirtualHost 10.0.0.32:443>
ServerAdmin webmaster@ciao.biz
DocumentRoot /www/mirko/lycia.ciao.biz
ServerName lycia.ciao.biz
ServerPath /lycia.ciao.biz
ScriptAlias /cgi-bin/ "/www/mirko/lycia.ciao.biz-cgi-bin/"
ErrorLog /var/log/httpd/apache/lycia.ciao.biz-error_log
CustomLog /var/log/httpd/apache/lycia.ciao.biz-access_log common
TransferLog /var/log/httpd/access_log
SSLEngine on
SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
praticamente ho aggiunto:
TransferLog /var/log/httpd/access_log
SSLEngine on
SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
E'corretto???
grazie