Welcome! Log In Create A New Profile

Advanced

Location support for multiple URLs

April 06, 2013 11:36AM
Hello,
I would like to use the FastCGI cache feature of nginx for my web application. But I need to use it only for a set of URL.

I would like to use it for the following locations:

http://domain.com/index.php?act=detail&ID=[ANY ID HERE]

Example:
http://domain.com/index.php?act=detail&id=o2Zimg

And so on.
What should I place in the location directive to cache only those URLs?
I can't figure it out on the nginx wiki.

Also, I would like to replace the Cache Control and Pragma headers set by my PHP application, can I use add_headers directive? Or I would have to add a 3rd party module, like more_http_headers? I use nginx from PPA(Ubuntu), so for adding more_http_headers I would have to build it :/

Greetings from Antarctica.
Thanks.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Location support for multiple URLs

Typlo April 06, 2013 11:36AM

Re: Location support for multiple URLs

Edho Arief May 08, 2013 11:34PM

Re: Location support for multiple URLs

António P. P. Almeida May 09, 2013 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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