Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: [SOLVED] Apache2.4.16 on SUSE cannot proxy sites |
|
Author |
|
vasileiosg
Joined: 22 Feb 2016 Posts: 5 Location: NL,Voorburg
|
Posted: Mon 22 Feb '16 10:14 Post subject: [SOLVED] Apache2.4.16 on SUSE cannot proxy sites |
|
|
Hello,
I consider myself a newbie on Apache but i am doing my best to learn.
I want to proxy a website something:8081 to something.somethingelse.com
So I use the following vhost:
<VirtualHost *:80>
ServerName something.somethingelse.com
ProxyPreserveHost On
ProxyPass / http://something:8081/
ProxyPassReverse / http://something:8081/
</VirtualHost>
When I put the code, it works but then it overwrites all my other vhosts.
So for example i have:
mail.somethingelse.com
cloud.somethingelse.com
something.somethingelse.com
and to whichever address you go, you end up on the latter.
Anyone knows what on earth am i doing wrong?
Thank you!
Last edited by vasileiosg on Mon 22 Feb '16 12:25; edited 1 time in total |
|
Back to top |
|
vasileiosg
Joined: 22 Feb 2016 Posts: 5 Location: NL,Voorburg
|
Posted: Mon 22 Feb '16 12:24 Post subject: [FIXED] |
|
|
I am happy to announce that after searching the whole internet and posting here, i found the solution myself (Murphy's law?)
In the <VirtualHost> I changed *:80 to *:* and the issue was resolved |
|
Back to top |
|
|
|
|
|
|