summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2012-12-04 20:27:35 +0100
committerBertrand Jacquin <beber@meleeweb.net>2012-12-04 20:27:35 +0100
commited96a0b34491c65dbfcba0e135d85a9a27d0a57e (patch)
treec4d2b9cc133633885b0f0ea4f8f37b7ca0b7e5e9
parent[BUILD] Split code to al_<apache mod>.{c,h} to be more readable (diff)
downloadmod_virtualvalue-ed96a0b34491c65dbfcba0e135d85a9a27d0a57e.tar.gz
[DOC] Add an example about how to use VirtualValue AuthUserFilev0.4
-rw-r--r--test/vhost.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vhost.conf b/test/vhost.conf
index b66b755..266611b 100644
--- a/test/vhost.conf
+++ b/test/vhost.conf
@@ -1,3 +1,5 @@
+LoadModule virtualvalue_module mod_virtualvalue.so
+
NameVirtualHost *:82
Listen *:82
@@ -39,4 +41,15 @@ Listen *:82
# Just log the replacement request and result
VirtualValue echo "/var/tmp:/var/www/common:%{SYM:/vhosts/%{HTTP:Host}}:/var/www/%{ENV:DOMAIN}"
+
+ <Location />
+ AuthName "Access Required"
+ AuthType Basic
+
+ # This one need to be placed every time you need to use
+ # VirtualValue AuthUserFile
+ AuthUserFile /dev/null
+ Require valid-user
+ </Location>
+ VirtualValue AuthUserFile /var/www/htpasswd-%{ENV:DOMAIN}
</VirtualHost>