Results 1 to 5 of 5
-
7th Dec 2011, 03:54 PM #1OPMemberWebsite's:
i-fresh.netHave a little confusion with Nginx config as reverse proxy
Hello,
I install nginx as a reverse proxy. If I usePHP Code:proxy_pass http://127.0.0.1:port
PHP Code:proxy_pass domain:port
PHP Code:http://ip:port
Could anyone explain for me?KingOfDCP Reviewed by KingOfDCP on . Have a little confusion with Nginx config as reverse proxy Hello, I install nginx as a reverse proxy. If I use proxy_pass http://127.0.0.1:port, it does not work. But if I use proxy_pass domain:port, it works. Even I can use browser to access http://ip:port. Could anyone explain for me? Rating: 5
-
7th Dec 2011, 03:59 PM #2BannedWebsite's:
xsl.tel xsltel.comI will assume you have apache as backend server. if so
you need to pass "Host: header to apache so it knows what domain to serve"
try to add this into your nginx conf
Code:proxy_set_header Host $host;
Mohammed H
-
7th Dec 2011, 04:12 PM #3OPMemberWebsite's:
i-fresh.netYes, I use apache as backend server. I already added it before.
-
7th Dec 2011, 07:53 PM #4BannedWebsite's:
xsl.tel xsltel.comHello,
ok so you are passing requests to http://127.0.0.1: port .
are you sure Apache is listneing on that IP and Port.
also try to pass requests to your VPS/Server public IP not 127.0.0.1
also if it didn't work either can you post VirtualHost directive of apache here?
Highest Regards
Mohammed H
-
8th Dec 2011, 05:16 AM #5OPMemberWebsite's:
i-fresh.netNow, I 'm passing request to http://domain: port and nginx is working. And I can use my browser to access http://domain: port. So I think Apache is listening on that Port.
Yes, If I use public IP, it works too.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
OVH & Reverse Proxy
By simoestcoool in forum Hosting DiscussionReplies: 7Last Post: 17th May 2012, 10:38 AM -
[Other] Reverse Proxy
By inject0r in forum ArchiveReplies: 4Last Post: 29th Apr 2012, 10:28 AM -
Best Reverse Proxy
By Webmin in forum Server ManagementReplies: 3Last Post: 2nd Apr 2012, 06:59 PM -
What is Reverse Proxy ?
By iq2011 in forum Hosting DiscussionReplies: 28Last Post: 27th Mar 2012, 06:56 PM -
Reverse Proxy Service
By Inforcer in forum Webmaster DiscussionReplies: 9Last Post: 17th Dec 2011, 04:34 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...