I am using Ubuntu-15.10 wily, Apache-2.4.12
I've been trying to use ProxyPass in an SSL enabled VirtualHost like so:
ProxyRequests Off ProxyPreserveHost On <Proxy *> Require all granted </Proxy> ProxyPass /myapp/ http://127.0.0.1:8090/ ProxyPassReverse /myapp/ http://127.0.0.1:8090/
With above configuration, I assumed that whatever is being served by the server on that port, e.g.
web will be appended to
However, this is not what I get. In Apache logs I get:
... File does not exist: /var/www/html/web, referer: https://www.example.com/myapp/
Is this because I don't understand what
ProxyPass is supposed to do? Or is there something wrong with my configuration that I need to correct?
ADDENDUM (18 Feb 2016)
I have turned on logging for
mod_proxy and I see the following which doesn't make sense:
... connecting http://127.0.0.1:8090/ to 127.0.0.1:8090 ... connected / to 127.0.0.1:8090 ... fam 2 socket created to 127.0.0.1 ... connection established with 127.0.0.1:8090 (127.0.0.1) ... connection complete to 127.0.0.1:8090 (127.0.0.1) ... http: has released connection for (127.0.0.1) ... proxy: connection shutdown
I am assuming that one of the addresses in the first line is the intrnal placeholder and the other is the URL being retrieved. But why in the second line the retrieved url gets connected to
/ instead of
/myapp/ as per ProxyPass?