Protecting URIs with OAuth2

2014-02-10 Thread kate_r
Hi Does anyone know how to protect an URI with OAuth authentication? the upstream sever is already capable of issuing new tokens, but I'm hoping that nginx can check the access token for certain URIs. Thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247374,247374#msg-247374 ___

upstream_response_time

2014-02-10 Thread Jeroen Ooms
I am using add_header x-responsetime $upstream_response_time; to report response times of the back-end to the client. I was expecting to see the back-end response time (e.g. 0.500 for half a second), however the headers that I am getting contain an epoch timestamp, e.g: x-responsetime: 13920

Re: missing /etc/nginx/sites-available

2014-02-10 Thread Steve Holdoway
On Mon, 2014-02-10 at 17:46 +0100, jack linkers wrote: > Hello, > > I'm new to linux and webservers, but I have a brain and C# background. > I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following > this > tutorial > :https://developers.google.com/speed/pagespeed/module/build_ngx_p

Re: missing /etc/nginx/sites-available

2014-02-10 Thread Josh Stratton
Hrmm, again I've only been using nginx a few days, but you may want to start googling around. Maybe this link will help? http://stackoverflow.com/questions/15208135/nginx-configuration-error On Mon, Feb 10, 2014 at 10:15 AM, jack linkers wrote: > Hi Josh, > > Yes, indeed I see inside /usr/loca

Re: missing /etc/nginx/sites-available

2014-02-10 Thread jack linkers
Hi Josh, Yes, indeed I see inside /usr/local/nginx : client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp But I don't understand what is the default.vhost file in it. If I change : include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; by :

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread Jeroen Ooms
On Mon, Feb 10, 2014 at 5:15 AM, Maxim Dounin wrote: > it is likely the cause, as the config includes the following lines: > > proxy_cache_methods POST; > proxy_cache_key "$request_method$request_uri$request_body"; > Yikes I was not aware that the cache key gets stored into the buffers as

Re: ASP.NET pages with nginx

2014-02-10 Thread parnican
I have played with this command: sudo fastcgi-mono-server4 /applications=/bernolak.dyndns.info:8080:/:/var/www/demo/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True & Is it possible that i don't have VPath:realpath configured correctly? If not what is my VPath? I have

Re: missing /etc/nginx/sites-available

2014-02-10 Thread Josh Stratton
I'm new to nginx myself, but I'm guessing because you're not using the package manager to install nginx. The install location in configured by the package. Following the build steps in your link... sed -e "s|%%PREFIX%%|/usr/local/nginx|" \ -e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \ -

missing /etc/nginx/sites-available

2014-02-10 Thread jack linkers
Hello, I'm new to linux and webservers, but I have a brain and C# background. I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following this tutorial : https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source I installed everything under root directory, suc

Re: high Traffic setup problem, module status don't deliver data

2014-02-10 Thread Aleksandar Lazic
Hi Jonathan. Sorry to be unclear, thanks for answer and question. Am 10-02-2014 16:37, schrieb Jonathan Matthews: On 10 February 2014 12:06, Aleksandar Lazic wrote: Thanks for help. Aleksandar - I can't work out what you need help with. There aren't any questions (or question marks!) in you

Re: ASP.NET pages with nginx

2014-02-10 Thread parnican
I have tried "experiments" with following parameters but no change..not sure this is the way i should go... Any suggestion how to make nginx *not* pass through the ":8080? proxy_pass_request_headers off; proxy_pass_request_body off; proxy_redirect off; } } Posted at Nginx Forum: http://foru

Re: high Traffic setup problem, module status don't deliver data

2014-02-10 Thread Jonathan Matthews
On 10 February 2014 12:06, Aleksandar Lazic wrote: > Thanks for help. Aleksandar - I can't work out what you need help with. There aren't any questions (or question marks!) in your email :-) I can't see your problem at first or second glance; I'm sure others will, but I'm quite slow. Could you s

Re: ASP.NET pages with nginx

2014-02-10 Thread parnican
HI Jonathan, thanks for reply. I really apologize but i have no clue what do you by ^^ ? Thank you. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247323,247359#msg-247359 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.o

Re: 404 not showing up in error logs (for PHP files)

2014-02-10 Thread kustodian
We solved this problem like this: try_files $uri $uri-404; This would first check if the php file exists, and if not it would try to open that same php file but with "-404" appended to it, so the user would still get a 404 status code, but it would also log what file was called. I hope this helps

Re: ASP.NET pages with nginx

2014-02-10 Thread Jonathan Matthews
On 10 February 2014 10:55, parnican wrote: > Hi all, > i would like to use my aspx pages with raspberry and nginx but it seem to be > not an easy goal... > I have tried almost all "tutorials" on the web but i can not find solution > for my issue. With lots of experiments i was able to reach a poin

RE: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread Lukas Tribus
Hi, > I'll rephrase the question. I'm interested in server certificates (not > client). The ssl_certificate_key file is used as a private key for the > server to decrypt ssl connections for clients. I'm looking to configure > another key for encrypting ssl connections from niginx server to upstre

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread rubenarslan
Yes, that's quite probably it! Then I guess it's on Jerome to weigh in, I don't know the exact reasoning for doing so, I would have thought it would be more appropriate to hash the request body in the cache key, but maybe that's not possibly using nginx? OpenCPU allows for request bodies up to 500

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread Maxim Dounin
Hello! On Mon, Feb 10, 2014 at 07:56:22AM -0500, rubenarslan wrote: > Hi Basti, > > thanks, I found the SO post myself. I had not set up the directives > properly, so thought the fix didn't work. It does now. I also think they > described a different problem, as in my case no cookies were sent,

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread rubenarslan
Hi Basti, thanks, I found the SO post myself. I had not set up the directives properly, so thought the fix didn't work. It does now. I also think they described a different problem, as in my case no cookies were sent, headers were fairly small and two requests with pretty much identical headers se

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread rubenarslan
Hi, after some further testing I discovered that I had the order in which various nginx config files are called wrong. Because location {} isn't merged, but overridden, my directives never 'took'. Setting proxy_buffer_size 8k; kept the errors from occurring. As I wrote on Github https://github.

Re: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread tbamise
Hello! > The only thing you can specify is ssl_client_certificate (and > ssl_client_certificate_key), and it is used only in connections > with clients. > Following Nginx docs (http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate) you can specify ssl_certificate_key and ssl_ce

Re: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread tbamise
itpp2012 Wrote: --- > > I've heard that stunned does not scale very well. I'm looking at > > managing a lot of simultaneous ssl connections hence using Nginx. > > You can loadbalance them, even create a pool for one worker with Lua > and expand t

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread basti
Hello, try this http://stackoverflow.com/questions/13894386/upstream-too-big-nginx-codeigniter Regards, Basti On 10.02.2014 11:55, rubenarslan wrote: > Hi Maxim & Jeroen, > > I'm the user Jeroen mentioned. I'm sorry for only being to produce sporadic > errors earlier, I now made a test case which

high Traffic setup problem, module status don't deliver data

2014-02-10 Thread Aleksandar Lazic
Dear list member. currently we have a huge traffic come up. ~500 r/s http://download.none.at/nginx_request-day.png ~3.5K active connections http://download.none.at/port_www-day.png http://download.none.at/nginx_combined.png The Peaks are the raw values from module status. ~1.1g b/s traffic ht

Re: upstream sent too big header while reading response header from upstream

2014-02-10 Thread rubenarslan
Hi Maxim & Jeroen, I'm the user Jeroen mentioned. I'm sorry for only being to produce sporadic errors earlier, I now made a test case which reliably produces the error, both on our server and Jeroen's server (so it's hopefully not just my amateur status with nginx). Of course, the ridiculously la

RE: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread Lukas Tribus
Hi, >> Yes I agree. The connection to the upstream server uses the nginx server >> certificates specified by $ssl_certificate(_key). > > It looks like you didn't understand my answer. Again: connections > to upstream servers don't use any client certificates. That is, > no certificates are used b

ASP.NET pages with nginx

2014-02-10 Thread parnican
Hi all, i would like to use my aspx pages with raspberry and nginx but it seem to be not an easy goal... I have tried almost all "tutorials" on the web but i can not find solution for my issue. With lots of experiments i was able to reach a point where i can not move forward. No Application Fou

Re: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread Maxim Dounin
Hello! On Sun, Feb 09, 2014 at 07:13:55PM -0500, tbamise wrote: > > > > Connections to upstream servers don't use any client certificates. > > > > Yes I agree. The connection to the upstream server uses the nginx server > certificates specified by $ssl_certificate(_key). It looks like you did

Re: Proxy to upstream HTTPS server *with different* keys/certs in nginx

2014-02-10 Thread itpp2012
> I've heard that stunned does not scale very well. I'm looking at > managing a lot of simultaneous ssl connections hence using Nginx. You can loadbalance them, even create a pool for one worker with Lua and expand them as needed. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247305,2

Re: 100% CPU Usage

2014-02-10 Thread Cédric
Thanks for you answer, I will try to see with Trend. Have a nice day Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247278,247316#msg-247316 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx