Welcome! Log In Create A New Profile

Advanced

Re: Beginner questions about proxy configuration and white space

September 09, 2011 04:04PM
I reinstalled nginx and re-added that directive to the new configutation file. Now this happens:

>> sudo nginx
>> nginx: [emerg] bind() to 10.0.1.187:2525 failed (49: Can't assign requested address)

In regards to the example given above:

server {
listen some_ip:some_port default;

location / {
add_header X-h1 h1;
add_header X-h2 "h2 h2";
add_header X-h3 h3;
add_header X-h4 h4;
add_header X-h5 h5;
add_header X-h6 "h6 h6";
add_header X-h7 h7;
proxy_pass http://backend;
}
}

some_ip:some_port is the site that I'm trying to pass the headers to. For http://backend, I'm using "http://127.0.0.1"

Any help would be appreciated.
Subject Author Posted

Beginner questions about proxy configuration and white space

ynasser September 08, 2011 10:41AM

Re: Beginner questions about proxy configuration and white space

magicbear September 08, 2011 01:28PM

Re: Beginner questions about proxy configuration and white space

ynasser September 08, 2011 01:42PM

Re: Beginner questions about proxy configuration and white space

ynasser September 09, 2011 04:04PM

Re: Beginner questions about proxy configuration and white space

ynasser September 12, 2011 01:22PM

Re: Beginner questions about proxy configuration and white space

magicbear September 09, 2011 04:10PM

Re: Beginner questions about proxy configuration and white space

ynasser September 09, 2011 05:00PM

Re: Beginner questions about proxy configuration and white space

ビリビリⅤ September 10, 2011 01:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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