Welcome! Log In Create A New Profile

Advanced

Beginner questions about proxy configuration and white space

September 08, 2011 10:41AM
Hello,

I have installed nginx on my personal computer and would like to use it as a proxy to force authentication via modified http headers in various browsers. There's an add-on in firefox to do this, but none for Chrome, which is why I am using nginx. I've edited configuration file to include something like this under the http section:

server {
listen some_port;

location http://some_ip {
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;
}
}

I figured that out from reading many examples and the wiki. Now, I do not know how exactly to configure nginx to act as a proxy. I've read through part of the wiki on the HttpProxy module, but I don't have much experience with web servers or proxies. Could someone point me in the right direction?

Also, when editing the configuration file using the http headers module (this: http://wiki.nginx.org/HttpHeadersModule), can values have spaces in them? Or should I put quotations around the whole thing? I read here: http://library.linode.com/web-servers/nginx/configuration/basic that whitespace doesn't matter, but I just thought to double check, since I saw no examples where values had spaces in them.

Thanks.
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: 288
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