diff --git a/apache/lib/common b/apache/lib/common index 617b50b..7a70f2e 100644 --- a/apache/lib/common +++ b/apache/lib/common @@ -703,7 +703,7 @@ __vhost_proxy_statement() { ProxyPass / http://$target/ ${proxy_pass_options[*]} $(__vhost_creds_statement "$cfg" "$dest" | prefix " ") - ProxyPassReverse / + ProxyPassReverse http://$target/ $([ "$protocol" == "https" ] && echo " SSLProxyEngine On") diff --git a/apache/test/vhost b/apache/test/vhost index ebcd4f7..497ca19 100644 --- a/apache/test/vhost +++ b/apache/test/vhost @@ -168,7 +168,7 @@ is out part ' AuthName "private" AuthUserFile /etc/apache2/sites-enabled/www.example.com.passwd Require valid-user - ProxyPassReverse / + ProxyPassReverse http://popo:3333/ ' @@ -290,7 +290,7 @@ is out ' ProxyPass / http://popo:3333/ retry=0 Allow from all - ProxyPassReverse / + ProxyPassReverse http://popo:3333/ @@ -343,7 +343,7 @@ is out ' ProxyPass / http://popo:3333/ retry=0 Allow from all - ProxyPassReverse / + ProxyPassReverse http://popo:3333/ SSLProxyEngine On