From 2d755550b3eed4c2733975c777843ed51dec0ed1 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 9 Feb 2021 16:34:55 -0500 Subject: fixed reverse proxy config, servername --- usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf | 5 ++++- usr/local/etc/apache24/httpd.conf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf b/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf index c3c052b..0eb8696 100644 --- a/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf +++ b/usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf @@ -1,8 +1,11 @@ DocumentRoot "/usr/local/www/nextcloud" - ServerName 192.168.1.55 + ServerName nextcloud.53hor.net SetHandler "proxy:fcgi://127.0.0.1:9000/" + + Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" + DirectoryIndex /index.php index.php diff --git a/usr/local/etc/apache24/httpd.conf b/usr/local/etc/apache24/httpd.conf index 6c7a09a..de914d6 100644 --- a/usr/local/etc/apache24/httpd.conf +++ b/usr/local/etc/apache24/httpd.conf @@ -222,7 +222,7 @@ ServerAdmin atc@53hor.net # # If your host doesn't have a registered DNS name, enter its IP address here. # -# ServerName nextcloud.53hor.net:80 +ServerName nextcloud.53hor.net # # Deny access to the entirety of your server's filesystem. You must -- cgit v1.2.3