# http.conf used for testing auth-test
ServerName 127.0.0.1
Listen 127.0.0.1:47524
PidFile @builddir@/httpd.pid
DocumentRoot @srcdir@
# The tests shut down apache with "graceful-stop", because that makes
# it close its listening socket right away. But it seems to sometimes
# result in apache never fully exiting. This fixes that.
GracefulShutdownTimeout 1
# Change this to "./error.log" if it's failing and you don't know why
ErrorLog /dev/null
LoadModule alias_module @APACHE_MODULE_DIR@/mod_alias.so
LoadModule auth_basic_module @APACHE_MODULE_DIR@/mod_auth_basic.so
LoadModule auth_digest_module @APACHE_MODULE_DIR@/mod_auth_digest.so
LoadModule authn_file_module @APACHE_MODULE_DIR@/mod_authn_file.so
LoadModule authz_host_module @APACHE_MODULE_DIR@/mod_authz_host.so
LoadModule authz_user_module @APACHE_MODULE_DIR@/mod_authz_user.so
LoadModule dir_module @APACHE_MODULE_DIR@/mod_dir.so
LoadModule mime_module @APACHE_MODULE_DIR@/mod_mime.so
@IF_HAVE_PHP@LoadModule php5_module @APACHE_PHP_MODULE_DIR@/@APACHE_PHP_MODULE@
LoadModule proxy_module @APACHE_MODULE_DIR@/mod_proxy.so
LoadModule proxy_http_module @APACHE_MODULE_DIR@/mod_proxy_http.so
LoadModule proxy_connect_module @APACHE_MODULE_DIR@/mod_proxy_connect.so
LoadModule ssl_module @APACHE_SSL_MODULE_DIR@/mod_ssl.so
DirectoryIndex index.txt
TypesConfig /dev/null
AddType application/x-httpd-php .php
Redirect permanent /redirected /index.txt
# Proxy #1: unauthenticated
Listen 127.0.0.1:47526
ProxyRequests On
AllowCONNECT 47525
# Deny proxying by default
Order Deny,Allow
Deny from all
# Allow local http connections
Order Allow,Deny
Allow from all
# Allow CONNECT to local https port
Order Allow,Deny
Allow from all
# Deny non-proxy requests
Order Deny,Allow
Deny from all
# Proxy #2: authenticated
Listen 127.0.0.1:47527
ProxyRequests On
AllowCONNECT 47525
# Deny proxying by default
Order Deny,Allow
Deny from all
# Allow local http connections with authentication
Order Allow,Deny
Allow from all
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require valid-user
# Allow CONNECT to local https port with authentication
Order Allow,Deny
Allow from all
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require valid-user
# Fail non-proxy requests
Order Deny,Allow
Deny from all
# Proxy #3: unauthenticatable-to
Listen 127.0.0.1:47528
ProxyRequests On
AllowCONNECT 47525
# Deny proxying by default
Order Deny,Allow
Deny from all
# Allow local http connections with authentication
Order Allow,Deny
Allow from all
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require user no-such-user
# Allow CONNECT to local https port with authentication
Order Allow,Deny
Allow from all
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require user no-such-user
# Fail non-proxy requests
Order Deny,Allow
Deny from all
# SSL setup
Listen 127.0.0.1:47525
SSLEngine on
SSLCertificateFile @srcdir@/test-cert.pem
SSLCertificateKeyFile @srcdir@/test-key.pem
# Basic auth tests
Alias /Basic/realm1/realm2/realm1 @srcdir@
Alias /Basic/realm1/realm2 @srcdir@
Alias /Basic/realm1/subdir @srcdir@
Alias /Basic/realm1/not @srcdir@
Alias /Basic/realm1 @srcdir@
Alias /Basic/realm12/subdir @srcdir@
Alias /Basic/realm12 @srcdir@
Alias /Basic/realm2 @srcdir@
Alias /Basic/realm3 @srcdir@
Alias /Basic @srcdir@
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require user user1
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require user user2
AuthType Basic
AuthName realm12
AuthUserFile @srcdir@/htpasswd
Require user user1 user2
AuthType Basic
AuthName realm2
AuthUserFile @srcdir@/htpasswd
Require user user2
AuthType Basic
AuthName realm1
AuthUserFile @srcdir@/htpasswd
Require user user1
AuthType Basic
AuthName realm2
AuthUserFile @srcdir@/htpasswd
Require user user2
AuthType Basic
AuthName realm3
AuthUserFile @srcdir@/htpasswd
Require user user3
# Digest auth tests
Alias /Digest/realm1/realm2/realm1 @srcdir@
Alias /Digest/realm1/realm2 @srcdir@
Alias /Digest/realm1/subdir @srcdir@
Alias /Digest/realm1/expire @srcdir@
Alias /Digest/realm1/not @srcdir@
Alias /Digest/realm1 @srcdir@
Alias /Digest/realm2 @srcdir@
Alias /Digest/realm3 @srcdir@
Alias /Digest @srcdir@
AuthType Digest
AuthName realm1
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
Require valid-user
AuthType Digest
AuthName realm1
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
AuthDigestNonceLifetime 2
Require valid-user
AuthType Digest
AuthName realm1
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
Require user user2
AuthType Digest
AuthName realm2
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
Require valid-user
AuthType Digest
AuthName realm1
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm1 /Digest/realm1/realm2/realm1
Require valid-user
AuthType Digest
AuthName realm2
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm2 /Digest/realm1/realm2
Require valid-user
AuthType Digest
AuthName realm3
AuthUserFile @srcdir@/htdigest
AuthDigestDomain /Digest/realm3
Require valid-user
# test RFC2069-style Digest
AuthDigestQop none