diff options
author | Dennis Eriksen <dennis@terje.dnns.no> | 2019-02-09 14:48:22 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis@terje.dnns.no> | 2019-02-09 14:48:22 +0100 |
commit | 010e82fe94a2d2b41f518a4ac3325ffa0dc2e5b5 (patch) | |
tree | aeb6d14bc238d172e98a6be19a9b6528e4c35042 /files/etc | |
parent | Initial commit (diff) | |
download | davical-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.conf | 26 |
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> |