Re: [users@httpd] Apache Virtual Host not working properly
I tried it but it's not working On Sun, Dec 31, 2017 at 5:11 AM, Marat Khalili wrote: > > For the second question, for sure it's not the application because I > ever use the same app before but i didn't get the problem [...] > > Try to set ProxyPreserveHost > -- > > With Best Regards, > Marat Khalili > > - > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >
Re: [users@httpd] Apache Virtual Host not working properly
> For the second question, for sure it's not the application because I ever use > the same app before but i didn't get the problem [...] Try to set ProxyPreserveHost -- With Best Regards, Marat Khalili - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Apache Virtual Host not working properly
For the second question, for sure it's not the application because I ever use the same app before but i didn't get the problem, in fact the application i'm using is Apache Marmotta, there is docker image already so I am using their docker image, http://marmotta.apache.org/installation.html#docker On Sat, Dec 30, 2017 at 10:02 PM, Eric Covener wrote: > On Sat, Dec 30, 2017 at 3:30 PM, Noor Mohammad > wrote: > > I have an application running at http://localhost:6512 and a virtual > host > > definition as follows: > > > > > > ServerName ldpmarmotta.example.com > > ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 > > > > 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-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >
Re: [users@httpd] Apache Virtual Host not working properly
On Sat, Dec 30, 2017 at 3:30 PM, Noor Mohammad wrote: > I have an application running at http://localhost:6512 and a virtual host > definition as follows: > > > ServerName ldpmarmotta.example.com > ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 > > 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-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Apache Virtual Host not working properly
I have an application running at http://localhost:6512 and a virtual host definition as follows: ServerName ldpmarmotta.example.com ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 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 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,