oliverv

/etc/apache2/sites-enabled/000-default.conf

Mar 7th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

cat /etc/apache2/sites-enabled/000-default.conf
<VirtualHost default:80>
DocumentRoot /var/www/nextcloud
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
LimitRequestBody 0
</Directory>
</VirtualHost>

Add Comment
Please, Sign In to add comment