ServerName photos.theschleiers.com ServerAdmin webmaster@theschleiers.com Listen 127.0.0.1:30098 Define SERVERHOME /home/schleierdav/sites/theschleiers.com/photos DocumentRoot "${SERVERHOME}/html" ErrorLog "${SERVERHOME}/logs/errors" LoadModule auth_basic_module lib/httpd/mod_auth_basic.so LoadModule authn_core_module lib/httpd/mod_authn_core.so LoadModule authn_file_module lib/httpd/mod_authn_file.so LoadModule authz_core_module lib/httpd/mod_authz_core.so LoadModule authz_user_module lib/httpd/mod_authz_user.so Require valid-user AuthName "Schleier Raw Photos" AuthType Basic AuthBasicProvider file AuthUserFile "${SERVERHOME}/conf/passwd" Require all granted LoadModule dav_module lib/httpd/mod_dav.so LoadModule dav_fs_module lib/httpd/mod_dav_fs.so DavLockDB "${SERVERHOME}/run/davlock" Dav on LoadModule log_config_module lib/httpd/mod_log_config.so LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_for_proxied_site CustomLog "${SERVERHOME}/logs/access" combined_for_proxied_site env=!INTERNAL_DUMMY_CONNECTION LoadModule mpm_prefork_module lib/httpd/mod_mpm_prefork.so PIDFile "${SERVERHOME}/run/apache.pid" LoadModule remoteip_module lib/httpd/mod_remoteip.so RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy 127.0.0.1 LoadModule proxy_module lib/httpd/mod_proxy.so LoadModule proxy_http_module lib/httpd/mod_proxy_http.so LoadModule rewrite_module lib/httpd/mod_rewrite.so RewriteEngine on RewriteCond %{ENV:SPEAK_DAV_TO_ME} !=YES RewriteRule ^/(.*)$ http://127.0.0.1:30099/$1 [P,L] LoadModule setenvif_module lib/httpd/mod_setenvif.so SetEnvIf User-Agent ^WebDAV.*$ \ SPEAK_DAV_TO_ME=YES SetEnvIf User-Agent ^Apache/.* .*internal dummy connection.*$ \ INTERNAL_DUMMY_CONNECTION LoadModule unixd_module lib/httpd/mod_unixd.so