diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-20 07:20:15 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-20 07:20:15 +0000 |
commit | 8fdc6a6dc4b2b23b923d8cbfba5190933155e95d (patch) | |
tree | 2d446c4c3f20ce56d2669ffc29d07c17a4e96ed2 /sca-cpp/trunk/modules/http/httpd-conf | |
parent | 08adcf2e783e4733e0fd646d353db3592c62140d (diff) |
Refactor auth configuration to allow HTTP and HTTPS virtual hosts to use different auth mechanisms, and refactor log configuration to make it easier to use.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291133 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/httpd-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/http/httpd-conf | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/http/httpd-conf b/sca-cpp/trunk/modules/http/httpd-conf index 5bcde9f633..e5e7f27287 100755 --- a/sca-cpp/trunk/modules/http/httpd-conf +++ b/sca-cpp/trunk/modules/http/httpd-conf @@ -101,6 +101,9 @@ Header onsuccess set Cache-Control "max-age=604800" env=!must-revalidate Header set Cache-Control "must-revalidate, max-age=0" env=must-revalidate Header set Expires "Tue, 01 Jan 1980 00:00:00 GMT" env=must-revalidate +# Configuration auth modules +Include conf/auth.conf + # Set default document root DocumentRoot $htdocs DirectoryIndex index-min.html index.html @@ -112,11 +115,6 @@ AllowOverride None Require all denied </Directory> -# Configure authentication -Include conf/noauth.conf -Include conf/auth.conf -Include conf/pubauth.conf - # Configure output filters to enable compression and rate limiting <Location /> SetOutputFilter RATE_LIMIT;DEFLATE @@ -144,6 +142,12 @@ RewriteRule .* http://$host$pportsuffix%{REQUEST_URI} [R] </Location> Include conf/svhost.conf + +# Configure authentication +Include conf/noauth.conf +Include conf/locauth.conf +Include conf/pubauth.conf + </VirtualHost> EOF @@ -151,7 +155,6 @@ EOF # Configure logging cat >$root/conf/log.conf <<EOF # Generated by: httpd-conf $* -LogLevel notice ErrorLog $root/logs/error_log CustomLog $root/logs/access_log combined @@ -227,6 +230,11 @@ EOF # Generate auth configuration cat >$root/conf/auth.conf <<EOF # Generated by: httpd-conf $* + +EOF + +cat >$root/conf/locauth.conf <<EOF +# Generated by: httpd-conf $* # Authentication and authorization configuration # Allow authorized access to document root |