ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /stats http://localhost/stats/{SUB_NAME}
ProxyPassReverse /stats http://localhost/stats/{SUB_NAME}
<Location /stats>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config={SUB_NAME}&$3 [NC,L]
</IfModule>
AuthType Basic
AuthName "Statistics for subdomain {SUB_NAME}"
AuthUserFile {WWW_DIR}/{DMN_NAME}/.htpasswd
AuthGroupFile {WWW_DIR}/{DMN_NAME}/.htgroup
Require group statistics statistics_{SUB_NAME}
</Location>
<IfModule suexec_module>
SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP}
</IfModule>