Help with ProxyPass, VirtualHost or is it Redirect

Alles, was den Apache betrifft, kann hier besprochen werden.

Help with ProxyPass, VirtualHost or is it Redirect

Postby harro1968 » 03. October 2018 02:34

Hi all,

Having some difficulties getting the syntax correct with a proxy situation. I have connectivity into my home to a Apache webserver that has the appropriate proxy modules loaded but I can't seem to get it to do what I want it to do.

Host "mail.mwaa.com.au" is forwarded to my home router, and port 80 is routed to 192.168.239.241. This server is running Apache 2.5, and in the httpd.conf file I have an entry like below;

<VirtualHost 192.168.239.241:80>
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPreserveHost On
ProxyPass / http://192.168.239.240:80/webmail
ProxyPassReverse / http://192.168.239.240:80/webmail
ServerName mail.mwaa.com.au
</VirtualHost>

My internal host, mail.mwaa.com.au is an Apache server on 192.168.239.240, and as you can see I'm trying to get to 192.168.239.240/webmail by typing http://mail.mwaa.com.au in my browser.

The above does not work, all I seem to get is the default "Welcome to Apache" page that is served from 192.168.239.241.

Any ideas? Is this something that should be done with ProxyPass??

David
harro1968
 
Posts: 1
Joined: 03. October 2018 02:31
XAMPP version: 7.032
Operating System: Centos 7.x

Re: Help with ProxyPass, VirtualHost or is it Redirect

Postby Nobbie » 03. October 2018 13:14

When i enter mail.mwaa.com.au into the browser, i get a page a la "A Salt Weapon" with a foto from a boat etc., not "Welcome to Apache".

Maybe you have a wrong entry in your hosts file for mail.mwaa.com.au or your Router does not support NAT-Loopback for internal LAN.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 30 guests