Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread Francis Daly
On Wed, Feb 05, 2014 at 10:55:19AM -0500, justink101 wrote: Hi there, > Gosh that is horrible that I have to copy and paste shared headers in the > server block, to all location blocks. Is this a conscious decision? This It's nginx. It makes it straightforward to see what configuration applies t

Re: restrict by IP for some users

2014-02-05 Thread Francis Daly
On Wed, Feb 05, 2014 at 02:49:46PM -0800, Grant wrote: Hi there, > I'd like to restrict access to a server block to authenticated users. > Some of the users should be able to access it from any IP and some of > the users should be blocked unless they are coming from a particular > IP. How is thi

upstream sent too big header while reading response header from upstream

2014-02-05 Thread Jeroen Ooms
After I added some CORS headers to my API, one of the users of my nginx-based system complained about occasional errors with: upstream sent too big header while reading response header from upstream He also reported to have worked around the issue using: proxy_buffers 8 512k; proxy_buffer_size 2

restrict by IP for some users

2014-02-05 Thread Grant
I'd like to restrict access to a server block to authenticated users. Some of the users should be able to access it from any IP and some of the users should be blocked unless they are coming from a particular IP. How is this done in nginx? - Grant ___

Re: Setting a header inside an if block

2014-02-05 Thread justink101
I don't have the auth_request module? All I need to do, is set the WWW-Authenticate header. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247218,247227#msg-247227 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listin

Re: Launching Excel in a production web server on a Mac

2014-02-05 Thread Anth Anth
Actually, after some more playing around I've finally got something working! Well, not exactly, but I'm able to communicate through OSA instead of appscript (and to be honest, I know very little about this appscript gem and it's been deprecated anyway, so it's probably for the best that I rewr

Re: sudden nginx hang -- restart fails, "98: Address already in use"

2014-02-05 Thread Jonathan Matthews
On 5 February 2014 18:53, dwirth wrote: > Hello, all. > > About an hour ago, out of the blue, my server stopped responding to webpage > requests. We are using nginx + php-fpm on RHEL6. > > # service nginx status > nginx (pid 31600) is running... > > # service nginx restart > Stopping nginx:

sudden nginx hang -- restart fails, "98: Address already in use"

2014-02-05 Thread dwirth
Hello, all. About an hour ago, out of the blue, my server stopped responding to webpage requests. We are using nginx + php-fpm on RHEL6. # service nginx status nginx (pid 31600) is running... # service nginx restart Stopping nginx:[FAILED] Starting ng

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread itpp2012
If its a repetitive block you could use an external file and a single include line. http://nginx.org/en/docs/ngx_core_module.html#include Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247185,247222#msg-247222 ___ nginx mailing list nginx@ngi

Re: Setting a header inside an if block

2014-02-05 Thread Gena Makhomed
On 05.02.2014 19:31, justink101 wrote: I currently have: server{ ... if ($remote_user = "") { return 401; } ... } But what I really want is: server{ ... if ($remote_user = "") { add_header WWW-Authenticate 'Basic realm="mydomainhere.com"';

Setting a header inside an if block

2014-02-05 Thread justink101
I currently have: server{ ... if ($remote_user = "") { return 401; } ... } But what I really want is: server{ ... if ($remote_user = "") { add_header WWW-Authenticate 'Basic realm="mydomainhere.com"'; return 401; } ... } But nginx won't al

Installing SSL on Nginx

2014-02-05 Thread Tyler Byrd
Looking for a consultant to assist with installing a SSL certificate on a Amazon EC2 instance running NGINX, Wordpress, & PHP-FPM. Currently we have installed everything but it is causing the WP admin area to run into a continues redirect. It is also causing our commerce cart to redirect to http:/

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread Maxim Dounin
Hello! On Wed, Feb 05, 2014 at 03:10:03PM +, Francis Daly wrote: > On Wed, Feb 05, 2014 at 05:52:21PM +0400, Maxim Dounin wrote: > > On Wed, Feb 05, 2014 at 01:33:34PM +, Francis Daly wrote: > > Hi there, > > > > Can you say where you got that impression? Perhaps documentation can be >

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread justink101
Gosh that is horrible that I have to copy and paste shared headers in the server block, to all location blocks. Is this a conscious decision? This makes maintainability very difficult as i have to do something like: [code] # shared_headers.conf add_header Alternate-Protocol 443:npn-spdy/3; add_he

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread Francis Daly
On Wed, Feb 05, 2014 at 05:52:21PM +0400, Maxim Dounin wrote: > On Wed, Feb 05, 2014 at 01:33:34PM +, Francis Daly wrote: Hi there, > > Can you say where you got that impression? Perhaps documentation can be > > clarified or corrected. > > It looks like add_header documentation doesn't have

Re: nginx-1.5.10

2014-02-05 Thread B.R.
Hi Valentin, Thanks for that information. However, since the usual way to do things is to have 2 branches: production & development, I guess the awaited people initial reaction is not to trust the 'mainline' branch. I think it would be highly beneficial to mention somewhere (on the downloads page?

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread Maxim Dounin
Hello! On Wed, Feb 05, 2014 at 01:33:34PM +, Francis Daly wrote: > On Wed, Feb 05, 2014 at 01:49:59AM -0500, justink101 wrote: > > Hi there, > > > I was under the impression that if you set headers in the > > server block, ALL location blocks below inherit those headers. > > No. > > Can y

Re: Are headers set in the server block inherited to all location blocks

2014-02-05 Thread Francis Daly
On Wed, Feb 05, 2014 at 01:49:59AM -0500, justink101 wrote: Hi there, > I was under the impression that if you set headers in the > server block, ALL location blocks below inherit those headers. No. Can you say where you got that impression? Perhaps documentation can be clarified or corrected.

Re: nginx-1.5.10

2014-02-05 Thread Valentin V. Bartenev
On Wednesday 05 February 2014 14:31:01 Steve Holdoway wrote: [..] > Great to hear about the new speedy stuff. I take it it's not getting > backported into 1.4, so when's 1.6 due? Just a note for people who worry about using mainline version in production. The fact that there is version called "sta

Mailserver proxy (all protocols, webmail included)

2014-02-05 Thread Andrea
Hello, I'm trying to configure a full proxy for my mailservers. With full, I mean for all protocols. We have, for example, 2 mail servers: zimbra (imap,pop3,smtp,webmail) linux+roundcube (imap, pop3, smtp, webmail) Using MySQL I'm able to configure imap,pop3,smtp proxy: when a user connect to the