| At line 2 changed one line |
| ! Configurazione |
| !! Configurazione |
| At line 20 changed one line |
| ! accesso sicuro SSL |
| !! accesso sicuro SSL |
| At line 36 added 3 lines |
| ! Virtualhost |
| i file virtualhost devono includere le chiamate al servizio ssl |
| esempio 1 : sito intermanete SSL |
| At line 40 added 3 lines |
| %%prettify |
| {{{ |
| <VirtualHost qui:80> |
| At line 44 added 7 lines |
| ServerAdmin log@telnext.it |
| ServerName www.nostrosito.it |
| DocumentRoot /home/www/www.nostrosito.it/htdocs |
| # Per tomcat |
| JkMount /*.jsp wrkr |
| JkMount /servlet/* wrkr |
| JkMount /manager/* wrkr |
| At line 52 added 53 lines |
| ErrorLog /home/www/www.nostrosito.it/logs/error_log |
| CustomLog /home/www/www.nostrosito.it/logs/access_log combined |
|
| HostnameLookups Off |
|
| UseCanonicalName Off |
| ServerSignature On |
| <Directory "/home/www/www.vaol.it/htdocs/protected"> |
| #SSLEngine on |
| #SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
| #SSLCertificateFile /root/sec/selfsigned-cert.pem |
| #SSLCertificateKeyFile /root/sec/rsa-private-key.pem |
| # Force clients from the Internet to use HTTPS |
| RewriteEngine on |
| RewriteRule ^/$ https://www.vaol.it/ [R] |
| #RewriteEngine on |
| #RewriteCond %{REMOTE_ADDR} !^192\.168\.1\.[0-9]+$ |
| #RewriteCond %{HTTPS} !=on |
| #RewriteRule .* - [F] |
| #Order deny,allow |
| #Allow from all |
| </Directory> |
| <Directory "/home/www/www.vaol.it/htdocs/"> |
| Options Indexes FollowSymLinks |
| AllowOverride All |
| Order allow,deny |
| Allow from all |
| </Directory> |
| </VirtualHost> |
|
| <VirtualHost qui:443> |
| ServerAdmin log@telnext.it |
| ServerName www.vaol.it |
|
| # DocumentRoot: The directory out of which you will serve your |
| # documents. By default, all requests are taken from this directory, but |
| # symbolic links and aliases may be used to point to other locations. |
| DocumentRoot /home/www/www.vaol.it/htdocs/protected |
| # Per tomcat |
| JkMount /*.jsp wrkr |
| JkMount /servlet/* wrkr |
| JkMount /manager/* wrkr |
|
| ErrorLog /home/www/www.vaol.it/logs/error_log |
| CustomLog /home/www/www.vaol.it/logs/access_log combined |
|
| }}} |
| /% |
|
|
|
|
|