Skip to content

Instantly share code, notes, and snippets.

@nickvergessen
Created October 30, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickvergessen/95a8607388ba8b9d2026a13c0a4564fe to your computer and use it in GitHub Desktop.
Save nickvergessen/95a8607388ba8b9d2026a13c0a4564fe to your computer and use it in GitHub Desktop.
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/nextcloud{version}.crt
SSLCertificateKeyFile /etc/apache2/ssl/nextcloud{version}.key
ServerAdmin webmaster@nextcloud{version}.local
ServerName nextcloud{version}.local
ServerAlias www.nextcloud{version}.local
DocumentRoot /home/nickv/Nextcloud/{version}/server
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/home/nickv/Nextcloud/{version}/server" >
Options +Indexes +FollowSymLinks
AllowOverride All
Require all granted
# order allow,deny
# allow from all
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost *:80>
ServerAdmin webmaster@nextcloud{version}.local
ServerName nextcloud{version}.local
ServerAlias www.nextcloud{version}.local
DocumentRoot /home/nickv/Nextcloud/{version}/server
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/home/nickv/Nextcloud/{version}/server" >
Options +Indexes +FollowSymLinks
AllowOverride All
Require all granted
# order allow,deny
# allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment