13

I'm trying to enable proxy virtualhost:

<VirtualHost *:80>

ServerName xxxxx.domain.tdl SSLProxyEngine On SSLProxyCheckPeerCN on

ProxyPass / https://localhost:1234 ProxyPassReverse / https://localhost:1234

</VirtualHost>

But i've an 500 err and my error.log (apache2) display:

[Tue Jan 03 15:41:42 2012] [error] (502)Unknown error 502: proxy: pass request body failed to [::1]:1234 (localhost)

[Tue Jan 03 15:41:42 2012] [error] proxy: pass request body failed to [::1]:1234 (localhost) from 82.252.xxx.xx ()

Missing some parameters ?

bux
  • 636

3 Answers3

3
ProxyPass / https://localhost:1234/
ProxyPassReverse / https://localhost:1234/

Try that instead. Slashes matching is important.

Shane Madden
  • 116,404
  • 13
  • 187
  • 256
3

If the browser is setting the cookies for xxxxx.domain.tdl and the server is returning them for localhost or a locally defined domain, you might have a mismatch. You can use ProxyPassReverseCookieDomain to rewrite the cookies.

Since they're both on /, you probably won't need ProxyPassReverseCookiePath.

2

Use 127.0.0.1 instead of localhost, probably your app is not running IPv6

GioMac
  • 4,754