aboutsummaryrefslogtreecommitdiffstats
path: root/files/etc/apache2/conf.d/davical.conf
diff options
context:
space:
mode:
Diffstat (limited to 'files/etc/apache2/conf.d/davical.conf')
-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>