summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-09 16:34:55 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-09 16:34:55 -0500
commit2d755550b3eed4c2733975c777843ed51dec0ed1 (patch)
treef75b1a9db52a9c0900097244f026491076d400cf /usr
parent0c515bbf1a463791aaeed8354a50c3a6c3bcc02b (diff)
downloadnextcloud-master.tar.xz
nextcloud-master.zip
fixed reverse proxy config, servernameHEADmaster
Diffstat (limited to 'usr')
-rw-r--r--usr/local/etc/apache24/Includes/nextcloud.53hor.net.conf5
-rw-r--r--usr/local/etc/apache24/httpd.conf2
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 @@
<VirtualHost *:80>
DocumentRoot "/usr/local/www/nextcloud"
- ServerName 192.168.1.55
+ ServerName nextcloud.53hor.net
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000/"
</FilesMatch>
+ <IfModule mod_headers.c>
+ Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
+ </IfModule>
DirectoryIndex /index.php index.php
</VirtualHost>
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