summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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