DocumentRoot "/usr/local/www/nextcloud" ServerName nextcloud.53hor.net RewriteEngine on RewriteCond %{SERVER_NAME} =nextcloud.53hor.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent] #ErrorLog ${APACHE_LOG_DIR}/error.log #CustomLog ${APACHE_LOG_DIR}/access.log combined Options +FollowSymlinks AllowOverride All Dav off SetEnv HOME /usr/local/www/nextcloud SetEnv HTTP_HOME /usr/local/www/nextcloud Satisfy Any