On Sat, Dec 30, 2017 at 3:30 PM, Noor Mohammad <bakenoor.uk@xxxxxxxxx> wrote:
> I have an application running at http://localhost:6512 and a virtual host
> definition as follows:
>
> <VirtualHost *:80>
> ServerName ldpmarmotta.example.com
> ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1
> </VirtualHost>
> I am getting two problems with the above definition:
> 1. All traffic to this server including http://example.com is being directed
> to http://localhost:6512
The first vhost for *:80 acts as a catch-all
https://httpd.apache.org/docs/2.4/vhosts/name-based.html
> 2. A request to http://ldpmarmotta.example.com is being directed to
> http://localhost:6512. I was not expecting the URL to change but the
> response to return on http://ldpmarmotta.example.com, Hard to guess the source. Maybe it's the backend app. See ProxyPassReverse
------------------------------------------------------------ ---------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx