aboutsummaryrefslogtreecommitdiffstats
path: root/files/etc
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@terje.dnns.no>2019-02-09 14:48:22 +0100
committerDennis Eriksen <dennis@terje.dnns.no>2019-02-09 14:48:22 +0100
commit010e82fe94a2d2b41f518a4ac3325ffa0dc2e5b5 (patch)
treeaeb6d14bc238d172e98a6be19a9b6528e4c35042 /files/etc
parentInitial commit (diff)
downloaddavical-docker-010e82fe94a2d2b41f518a4ac3325ffa0dc2e5b5.tar.gz
finishing work. davical now works with my setup
Diffstat (limited to 'files/etc')
-rw-r--r--files/etc/apache2/conf.d/davical.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/files/etc/apache2/conf.d/davical.conf b/files/etc/apache2/conf.d/davical.conf
new file mode 100644
index 0000000..482eff6
--- /dev/null
+++ b/files/etc/apache2/conf.d/davical.conf
@@ -0,0 +1,26 @@
+<VirtualHost *:80>
+
+ ServerName #APACHE_SERVER_NAME
+ UseCanonicalName on
+
+ DocumentRoot /var/www/app/htdocs
+ DirectoryIndex index.php index.html
+
+ # To cirkumvent phps $_SERVER['HTTPS']-check
+ SetEnv HTTPS "on"
+
+ AcceptPathInfo On
+
+ <Directory "/var/www/app/htdocs">
+ AuthType Basic
+ AuthName "private area"
+ AuthUserFile /etc/apache2/davical.htpasswd
+ Require valid-user
+ </Directory>
+
+ <Directory "/var/www/app/htdocs/images/">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+</VirtualHost>