Skip to content

Commit 435d239

Browse files
committed
Use "ProxyPreserveHost on" instead of ProxyPassReverse.
1 parent 1104dce commit 435d239

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mt/httpd/build-script/apache2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ mod_proxy_so=`find $module_dirs -name 'mod_proxy.so' 2>/dev/null | head -1`
2626
if [ -n "$mod_proxy_so" ]; then
2727
cat > $httpd_conf_d/mt-proxy.conf <<CONF
2828
LoadModule proxy_module $mod_proxy_so
29-
ProxyPassReverse / http://mt/
29+
ProxyPreserveHost on
3030
CONF
3131
fi
3232

3333
mod_proxy_http_so=`find $module_dirs -name 'mod_proxy_http.so' 2>/dev/null | head -1`
3434
if [ -n "$mod_proxy_http_so" ]; then
3535
cat > $httpd_conf_d/mt-proxy_http.conf <<CONF
3636
LoadModule proxy_http_module $mod_proxy_http_so
37-
ProxyPassReverse / http://mt/
37+
ProxyPreserveHost on
3838
CONF
3939
fi
4040

0 commit comments

Comments
 (0)