NoPaste

mailcow.conf

von Titus2147
SNIPPET_DESC:
/etc/apache2/sites-available
SNIPPET_CREATION_TIME:
20.10.2017 23:18:04
SNIPPET_PRUNE_TIME:
Unendlich

SNIPPET_TEXT:
  1. # mailcow site configuration
  2. # ! Do not remove this header !
  3. SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
  4. Listen 127.0.0.1:81
  5. <VirtualHost 127.0.0.1:81>
  6.         DocumentRoot /usr/lib/cgi-bin
  7.         <Directory /usr/lib/cgi-bin>
  8.                 AddHandler cgi-script .cgi .pl
  9.                 Options +ExecCGI
  10.         </Directory>
  11. </VirtualHost>
  12. <VirtualHost *:80>
  13.         ServerSignature off
  14.         TraceEnable off
  15.         AddDefaultCharset utf-8
  16.         ServerName "mail.XXX.eu"
  17.         DocumentRoot /var/www/mail
  18.         RewriteEngine On
  19.         RewriteCond %{HTTPS} !=on
  20.         RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [L,R,NE]
  21. </VirtualHost>
  22. <IfModule mod_ssl.c>
  23.         <VirtualHost *:443>
  24.                 ServerSignature off
  25.                 TraceEnable off
  26.                 AddDefaultCharset utf-8
  27.                 ServerName "mail.XXX.eu"
  28.                 DocumentRoot /var/www/mail
  29.                 ErrorLog ${APACHE_LOG_DIR}/error.log
  30.                 CustomLog ${APACHE_LOG_DIR}/access.log combined
  31.                 SSLEngine on
  32.                 SSLCertificateFile /etc/ssl/mail/mail.crt
  33.                 SSLCertificateKeyFile /etc/ssl/mail/mail.key
  34.                 ErrorDocument 503 /admin.php
  35.                 ErrorDocument 500 /admin.php
  36.                 php_admin_value upload_max_filesize 25M
  37.                 php_admin_value post_max_size 26M
  38.                 <FilesMatch "\.(cgi|shtml|phtml|php)$">
  39.                         SSLOptions +StdEnvVars
  40.                 </FilesMatch>
  41.                 BrowserMatch "MSIE [2-6]" \
  42.                         nokeepalive ssl-unclean-shutdown \
  43.                         downgrade-1.0 force-response-1.0
  44.                 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  45.                 SSLProtocol All -SSLv2 -SSLv3
  46.                 SSLHonorCipherOrder On
  47.                 Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
  48.                 Header always set X-Content-Type-Options nosniff
  49.                 SSLCompression off
  50.                 SSLUseStapling on
  51.         </VirtualHost>
  52. </IfModule>

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN