Skip to content

Instantly share code, notes, and snippets.

@WaaromZoMoeilijk
Created March 10, 2016 11:48
Show Gist options
  • Save WaaromZoMoeilijk/9d4b4129ad1d34f6af6c to your computer and use it in GitHub Desktop.
Save WaaromZoMoeilijk/9d4b4129ad1d34f6af6c to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
#header add Strict-Transport-Security: "max-age=15768000;includeSubdomains"
# SSLEngine on
### YOUR SERVER ADDRESS ###
ServerAdmin ich@dwgadf.de
ServerName example.com
ServerAlias www.example.com
### SETTINGS ###
DocumentRoot /var/www/owncloud
<Directory /var/www/owncloud>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Require all granted
Satisfy Any
</Directory>
Alias /owncloud "/var/www/owncloud/"
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
### LOCATION OF CERT FILES ###
#SSLCertificateFile /etc/ssl/oc/crt.crt
#SSLCertificateKeyFile /etc/ssl/oc/key.pem
#SSLCACertificateFile /etc/ssl/oc/ca-bundle
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment