Advertisement
adathor

nextcloud.apache.conf

Dec 5th, 2017
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <IfDefine SSL>
  2. <IfDefine !NOSSL>
  3.  
  4. ##
  5. ## SSL Virtual Host Context
  6. ##
  7.  
  8. <VirtualHost _default_:443>
  9.  
  10.     #  General setup for the virtual host
  11.     DocumentRoot "/srv/www/htdocs/nextcloud"
  12.     ServerName sx5.whatis.id
  13.     #ServerAdmin webmaster@example.com
  14.     ErrorLog /var/log/apache2/error_log
  15.     TransferLog /var/log/apache2/access_log
  16.  
  17.     #   SSL Engine Switch:
  18.     #   Enable/Disable SSL for this virtual host.
  19.     SSLEngine on
  20.  
  21.     #   You can use per vhost certificates if SNI is supported.
  22.     #SSLCertificateFile /etc/apache2/ssl.crt/cert1.pem
  23.         SSLCertificateFile /etc/letsencrypt/live/sx5.whatis.id/fullchain.pem
  24.     SSLCertificateKeyFile /etc/letsencrypt/live/sx5.whatis.id/privkey.pem
  25.     #SSLCertificateChainFile /etc/apache2/ssl.crt/vhost-example-chain.crt
  26.     <IfModule mod_headers.c>
  27.           Header always set Strict-Transport-Security "max-age=15768000; preload"
  28.     </IfModule>
  29.     #   Per-Server Logging:
  30.     #   The home of a custom SSL log file. Use this when you want a
  31.     #   compact non-error SSL logfile on a virtual host basis.
  32.     CustomLog /var/log/apache2/ssl_request_log   ssl_combined
  33.  
  34. </VirtualHost>
  35.  
  36. </IfDefine>
  37. </IfDefine>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement