Victor Iggy
April 20, 2009 05:19PM
Ok, there has to be a bug here some where. My $request_uri isn't
matching.

I have also ran if ($request_uri !~ "^/resources/.*") {} just to see if
my regexp is messed up. The line isn't being evaluated.
I am pretty sure it is reaching the proxy_pass since I can add
"add_header X-Foo 'bar';" and that will be appended to response.

nginx 0.7.52

location / {
if ($request_uri ~ "^/resources/.*") {
add_header X-Foo 'bar';
expires 30d;
}

if (!-f $request_filename) {
proxy_pass http://127.0.0.1:8089;
break;
}
}

Is there url
curl -I
http://mydomain.com/resources/org.apache.wicket.Application/optimized.css
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

nginx bug

Victor Iggy April 20, 2009 05:19PM

Re: nginx bug

Maxim Dounin April 20, 2009 07:04PM

Re: nginx bug

Victor Iggy April 20, 2009 08:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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