PDA

View Full Version : Cambiare un virtual host non sicuro in uno sicuro


prazision
25-09-2004, 16: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 [email protected]
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 [email protected]
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

l.golinelli
25-09-2004, 17:40
Va? Se sì sei a posto...

prazision
25-09-2004, 18:44
mmm...per provarlo dovrei fare anche altre cose.
mi bastava sapere se è corretto quello che ho scritto.

grazie

prazision
26-09-2004, 12:34
:mc:

l.golinelli
01-10-2004, 08:44
Direi di sì, però bisogna provarle le cose, non si sa mai...
Cmq direi che va bene... ;)

prazision
01-10-2004, 10:01
hey grazie mille