From b07f87a11bbf1467e4acf1b79135f493f81dc1ef Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Tue, 29 May 2012 07:37:39 +0000 Subject: Fix server config of server-status and proxy balancer-manager pages. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1343580 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/http/httpd-conf | 27 ++++++++++----------------- sca-cpp/trunk/modules/http/httpd-ssl-conf | 9 +++++++++ sca-cpp/trunk/modules/http/proxy-base-conf | 1 - sca-cpp/trunk/modules/http/proxy-conf | 1 - sca-cpp/trunk/modules/http/proxy-ssl-conf | 1 - 5 files changed, 19 insertions(+), 20 deletions(-) (limited to 'sca-cpp') diff --git a/sca-cpp/trunk/modules/http/httpd-conf b/sca-cpp/trunk/modules/http/httpd-conf index 5b034c7928..54154e119e 100755 --- a/sca-cpp/trunk/modules/http/httpd-conf +++ b/sca-cpp/trunk/modules/http/httpd-conf @@ -135,20 +135,12 @@ ServerName http://$host$pportsuffix RewriteEngine on RewriteCond %{HTTP_HOST} !^$host [NC] RewriteCond %{HTTP:X-Forwarded-Server} ^$ [NC] +RewriteCond %{REQUEST_URI} !^/server-status [NC] +RewriteCond %{REQUEST_URI} !^/balancer-manager [NC] +RewriteCond %{REQUEST_URI} !^/proxy/ [NC] RewriteRule .* http://$host$pportsuffix%{REQUEST_URI} [R] -# Enable server status - -SetHandler server-status -HostnameLookups on - - - -SetHandler server-info -HostnameLookups on - - Include conf/svhost.conf # Configure authentication @@ -210,7 +202,6 @@ LoadModule socache_shmcb_module ${modules_prefix}/modules/mod_socache_shmcb.so LoadModule rewrite_module ${modules_prefix}/modules/mod_rewrite.so LoadModule mime_module ${modules_prefix}/modules/mod_mime.so LoadModule status_module ${modules_prefix}/modules/mod_status.so -LoadModule info_module ${modules_prefix}/modules/mod_info.so LoadModule negotiation_module ${modules_prefix}/modules/mod_negotiation.so LoadModule dir_module ${modules_prefix}/modules/mod_dir.so LoadModule setenvif_module ${modules_prefix}/modules/mod_setenvif.so @@ -296,15 +287,11 @@ EOF cat >$root/conf/adminauth.conf < Require user admin - -Require user admin - - EOF # Create password and group files @@ -347,6 +334,12 @@ ProxyRequests Off ProxyPreserveHost Off ProxyStatus On +# Enable server status + +SetHandler server-status +HostnameLookups on + + EOF cat >$root/conf/svhost.conf < @@ -183,6 +186,12 @@ SSLProxyVerify require SSLProxyVerifyDepth 1 SSLProxyCheckPeerCN Off +# Enable server status + +SetHandler server-status +HostnameLookups on + + EOF # Generate tracking configuration diff --git a/sca-cpp/trunk/modules/http/proxy-base-conf b/sca-cpp/trunk/modules/http/proxy-base-conf index cbd62bcc14..377175328d 100755 --- a/sca-cpp/trunk/modules/http/proxy-base-conf +++ b/sca-cpp/trunk/modules/http/proxy-base-conf @@ -27,7 +27,6 @@ cat >>$root/conf/vhost.conf <>$root/conf/vhost.conf <>$root/conf/vhost-ssl.conf <