What is the right place for sub_filter?

2014-01-22 Thread DenisM
Hi! My site runs php-cgi (via fastcgi) & nginx 1.4.4. I need to replace www.domain refs to www1.domain ones. Where to place sub_filter - in server{}, or "location /", or "location ~ .php$",..? sub_filter www.domain www1.domain; sub_filter_types *; I tried all these places w/o success. Posted at

Re: Understanding location blocks and try files

2014-01-22 Thread Francis Daly
On Wed, Jan 22, 2014 at 09:07:13PM +, Jonathan Matthews wrote: > On 22 January 2014 20:36, Francis Daly wrote: > > On Wed, Jan 22, 2014 at 02:54:35PM -0500, AD7six wrote: Hi there, > >> location ~ \.php$ { > >> location ~* \.(?:manifest|appcache|html?|xml|json)$ { > >> An invalid re

Re: Logging $ssl_session_id can crash Nginx 1.5.9 worker

2014-01-22 Thread Maxim Dounin
Hello! On Thu, Jan 23, 2014 at 12:06:55AM +0400, Ruslan Ermilov wrote: > On Wed, Jan 22, 2014 at 02:02:51PM -0500, mnordhoff wrote: > > I run the nginx.org mainline packages on Ubuntu 12.04, 32- and 64-bit. I use > > a wacky custom log format, and after 1.5.9 was released today, I enabled > > log

Re: Logging $ssl_session_id can crash Nginx 1.5.9 worker

2014-01-22 Thread Maxim Dounin
Hello! On Wed, Jan 22, 2014 at 02:02:51PM -0500, mnordhoff wrote: > I run the nginx.org mainline packages on Ubuntu 12.04, 32- and 64-bit. I use > a wacky custom log format, and after 1.5.9 was released today, I enabled > logging the $ssl_session_id variable. I later ran an SSL Labs SSL Server >

Re: Understanding location blocks and try files

2014-01-22 Thread Valentin V. Bartenev
On Wednesday 22 January 2014 21:07:13 Jonathan Matthews wrote: [..] > ... and its this last step which isn't working as expected. I don't > quite have the explanation or docs to hand to say why this won't work, > but this SO page seems to have an interestingly un-up-voted answer at > the bottom of

Re: Understanding location blocks and try files

2014-01-22 Thread Jonathan Matthews
On 22 January 2014 20:36, Francis Daly wrote: > On Wed, Jan 22, 2014 at 02:54:35PM -0500, AD7six wrote: > > Hi there, > >> location ~ \.php$ { >> location ~* \.(?:manifest|appcache|html?|xml|json)$ { > >> A valid response where the url is a file: >> >> $ curl -i http://nginx.dev/foo.json >

Re: Implementing CONNECT in nginx

2014-01-22 Thread Thomas Glanzmann
Hello, * Thomas Glanzmann [2014-01-22 16:15]: > I would like to extend nginx with a CONNECT statement which connects to > a TCP socket. Could someone walk me through which source files I need to > modify and which fucntions I should have a look at? to answer my own question. The websocket implem

Re: Understanding location blocks and try files

2014-01-22 Thread Francis Daly
On Wed, Jan 22, 2014 at 02:54:35PM -0500, AD7six wrote: Hi there, > location ~ \.php$ { > location ~* \.(?:manifest|appcache|html?|xml|json)$ { > A valid response where the url is a file: > > $ curl -i http://nginx.dev/foo.json > HTTP/1.1 200 OK > An invalid response when passed to php

Re: Logging $ssl_session_id can crash Nginx 1.5.9 worker

2014-01-22 Thread Ruslan Ermilov
On Wed, Jan 22, 2014 at 02:02:51PM -0500, mnordhoff wrote: > I run the nginx.org mainline packages on Ubuntu 12.04, 32- and 64-bit. I use > a wacky custom log format, and after 1.5.9 was released today, I enabled > logging the $ssl_session_id variable. I later ran an SSL Labs SSL Server > Test, [0]

Re: Understanding location blocks and try files

2014-01-22 Thread AD7six
Thanks for the reply, I've read through those sections again - if I'm missing something obvious I'm afraid I need someone to point it out to me :| Sorry about that I thought pointing at a working example would allow close scrutiny - didn't think to remove the files/config that weren't in use. Onl

Re: Understanding location blocks and try files

2014-01-22 Thread Jonathan Matthews
On 22 January 2014 18:31, AD7six wrote: > What confuses me is why this example is a 404: > >> curl -i http://nginx.dev/apples.json >> HTTP/1.1 404 Not Found >> Server: nginx/1.4.4 > > As can be seen in the log [3] there is an invalid response from /index.php. > If I disable the location block addi

Logging $ssl_session_id can crash Nginx 1.5.9 worker

2014-01-22 Thread mnordhoff
I run the nginx.org mainline packages on Ubuntu 12.04, 32- and 64-bit. I use a wacky custom log format, and after 1.5.9 was released today, I enabled logging the $ssl_session_id variable. I later ran an SSL Labs SSL Server Test, [0] which makes numerous HTTPS requests of various sorts, and lo and b

Understanding location blocks and try files

2014-01-22 Thread AD7six
Hi, I'm trying to understand a problem I'm facing in a typical frontend-controller application. I've setup a test config with a single simple server [1], and ran a test script with debugging enabled to show what happens [2]. What confuses me is why this example is a 404: > curl -i http://ngin

Re: [nginx-announce] nginx-1.5.9

2014-01-22 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.5.9 for Windows http://goo.gl/awceRm (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

Implementing CONNECT in nginx

2014-01-22 Thread Thomas Glanzmann
Hello everyone, I would like to extend nginx with a CONNECT statement which connects to a TCP socket. Could someone walk me through which source files I need to modify and which fucntions I should have a look at? Or if there is anything else that can give me a quickstart? My use case is that I wo

nginx-1.5.9

2014-01-22 Thread Maxim Dounin
Changes with nginx 1.5.9 22 Jan 2014 *) Change: now nginx expects escaped URIs in "X-Accel-Redirect" headers. *) Feature: the "ssl_buffer_size" directive. *) Feature: the "limit_rate" directive can now be used to rate limit responses sen

Trying to set-up a local development environment

2014-01-22 Thread blue dust
I am a complete newbie to the server side of things. My background has been installing wamp (http://www.wampserver.com/en/), dumping files into the www folder, and testing via localhost. It all just worked. Recently I switched to linux (archlinux) and am trying to set-up a local development enviro