Welcome! Log In Create A New Profile

Advanced

Nginx not passing http request to backend server

February 14, 2014 11:07AM
Hi,
I have configured Nginx as a reverse-proxy to pass http requests to backend servers.
When i try to see the domains thay all show me the default page of Nginx.
The config file is in /etc/nginx/conf.d
Theese are the entries that i have for one of the domains
server {
listen 80;
server_name test.verofei.local;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://test.verofei.local/;
}
}

So how can i configure nginx to act as a frontend reverse proxy for our backend webservers?

Thanx,
Fei
Subject Author Posted

Nginx not passing http request to backend server

verofei February 14, 2014 11:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
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