| 1 | 2 | simandl | <IfModule mod_ssl.c> |
| 2 | | | <VirtualHost _default_:443> |
| 3 | | | ServerAdmin webmaster@localhost |
| 4 | | | |
| 5 | | | DocumentRoot /var/www/freenet-router |
| 6 | | | <Directory /> |
| 7 | | | Options FollowSymLinks |
| 8 | | | AllowOverride None |
| 9 | | | </Directory> |
| 10 | | | <Directory /var/www/> |
| 11 | | | Options Indexes FollowSymLinks MultiViews |
| 12 | | | AllowOverride None |
| 13 | | | Order allow,deny |
| 14 | | | allow from all |
| 15 | | | </Directory> |
| 16 | | | |
| 17 | | | ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ |
| 18 | | | <Directory "/usr/lib/cgi-bin"> |
| 19 | | | AllowOverride None |
| 20 | | | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch |
| 21 | | | Order allow,deny |
| 22 | | | Allow from all |
| 23 | | | </Directory> |
| 24 | | | |
| 25 | | | ErrorLog ${APACHE_LOG_DIR}/error.log |
| 26 | | | |
| 27 | | | # Possible values include: debug, info, notice, warn, error, crit, |
| 28 | | | # alert, emerg. |
| 29 | | | LogLevel warn |
| 30 | | | |
| 31 | | | Alias /fcgi-bin/php5-fpm /fcgi-bin-php5-fpm-freenet |
| 32 | | | FastCgiExternalServer /fcgi-bin-php5-fpm-freenet -socket /var/run/php5-fpm-freenet.sock |
| 33 | | | |
| 34 | | | CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined |
| 35 | | | |
| 36 | | | # SSL Engine Switch: |
| 37 | | | # Enable/Disable SSL for this virtual host. |
| 38 | | | SSLEngine on |
| 39 | | | |
| 40 | | | # A self-signed (snakeoil) certificate can be created by installing |
| 41 | | | # the ssl-cert package. See |
| 42 | | | # /usr/share/doc/apache2.2-common/README.Debian.gz for more info. |
| 43 | | | # If both key and certificate are stored in the same file, only the |
| 44 | | | # SSLCertificateFile directive is needed. |
| 45 | | | SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem |
| 46 | | | SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key |
| 47 | | | |
| 48 | | | <FilesMatch "\.(cgi|shtml|phtml|php)$"> |
| 49 | | | SSLOptions +StdEnvVars |
| 50 | | | </FilesMatch> |
| 51 | | | <Directory /usr/lib/cgi-bin> |
| 52 | | | SSLOptions +StdEnvVars |
| 53 | | | </Directory> |
| 54 | | | |
| 55 | | | # "force-response-1.0" for this. |
| 56 | | | BrowserMatch "MSIE [2-6]" \ |
| 57 | | | nokeepalive ssl-unclean-shutdown \ |
| 58 | | | downgrade-1.0 force-response-1.0 |
| 59 | | | # MSIE 7 and newer should be able to use keepalive |
| 60 | | | BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown |
| 61 | | | |
| 62 | | | </VirtualHost> |
| 63 | | | </IfModule> |
| 64 | | | |