Welcome! Log In Create A New Profile

Advanced

nginx reverse proxy problem

Posted by rebornishard 
nginx reverse proxy problem
August 05, 2014 07:15AM
Hello everyone,

i wanted to mirroring my other site using nginx
but what i get is only apache page
is there something i need to do ?

info :
both domain in different ip
target site using cpanel apache

thank you
Re: nginx reverse proxy problem
August 19, 2014 05:59PM
HI:

I made a lab to do a reverse proxy, my idea was this:



[Internet] --------->[RP Server with NGINX in RHEL 6.5]----\.
.\---> [ws01 with Apache in RHEL 6.5]
. \--->[ws02 with Apache in RHEL 6.5]

RP Server with NGINX in RHEL 6.5 IP: 10.0.0.100 (NIC "external" network), 192.168.122.100 (NIC "internal" network)

ws01 with Apache in RHEL 6.5 IP: 192.168.122.120 (It has the info about www.test.com)
ws02 with Apache in RHEL 6.5 IP: 192.168.122.130 (It has the info about www.prueba.com)

To emulate this i made 3 VMs in my laptop with Windows 7. I didn't have a DNS server enabled, so i have edited the hosts file in my Windows.

www.test.com 10.0.0.100
www.prueba.com 10.0.0.100

My Windows 7 for this lab has 10.0.0.10

I follow the instructions of this link: http://www.cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy/

All it's working fine.



Edited 1 time(s). Last edit at 08/19/2014 05:59PM by Stvrosky.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready