Re: Modsecurity Reverse proxy

Monah Baki <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <CALP3=x_eivw2NTHORJGUQobny5poHqOtSO=tJv3Kgju5p8g2Zw@mail.gmail.com>
Hi Manuel,

It was a simple fix, all I had to do was change to:


ProxyPreserveHost On
ProxyPass / http://54.156.228.101/
ProxyPassReverse / http://54.156.228.101/

Guess it needed the IP rather then the FQDN



Thanks

On Sun, Mar 31, 2019 at 10:02 PM Manuel Spartan <[email protected]>
wrote:

> Hi Baki,
>
> You need to provide more info and context, can you provide the apache
> error log related to this and the logs on the other server.
>
> This issue can have multiple causes, depending on what the other server is
> expecting, for example proxypreservehost may cause this issue if you are
> getting to the wrong vhost
> http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost
>
> Cheers!
> Sent from my iPhone
>
> On 31 Mar 2019, at 20:37, Monah Baki <[email protected]> wrote:
>
> Hi all,
>
> I have 2 servers running on AWS, server one has Apache/Modsecurity and
> server two running Apache only which also is our www domain server.
>
> I modified our DNS entry at our registrar to point our www IP address to
> server one, and on server one I added the following:
>
> ProxyPass "/" "http://www.<domain.com>"
> ProxyPassReverse "/" "http://www.<domain.com>"
>
> I get a This site can’t be reached when accessing the website on my
> browser.
>
> Thanks
>
> _______________________________________________
> mod-security-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
> Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
> http://www.modsecurity.org/projects/commercial/rules/
> http://www.modsecurity.org/projects/commercial/support/
>
> _______________________________________________
> mod-security-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
> Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
> http://www.modsecurity.org/projects/commercial/rules/
> http://www.modsecurity.org/projects/commercial/support/
>

_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.