Trying to add expires on proxied content make images and css/js redirect

Piotr Sikora piotr.sikora at
Wed Nov 4 12:35:22 MSK 2009

You need to use either:

location /thelocation {
    proxy_pass http://localhost:8080;

or if for some reason that's not possible, then:

location /thelocation/(.*) {
   proxy_pass http://localhost:8080/$1;

Best regards,
Piotr Sikora < piotr.sikora at >

More information about the nginx mailing list