Tag Info

Hot answers tagged


You can use a map for this. Place it in a separate file which is included from the server's http block, and then whenever it changes, reload nginx. An example: map $request_uri $my_no_cache { default 1; /b.php?q=123 0; } To use it, place this in the relevant server or location: fastcgi_no_cache $my_no_cache; fastcgi_cache_bypass ...


Nginx packaging changed : the conf.d folder was used in old packages, sites-enabled / sites-available is used now with sites-available directory containing actual vhosts configurations and sites-enabled the symlinks to sites-available vhosts you want to activate. So a typical structure would now be : nginx ├── nginx.conf ├── sites-available │   ├── mysite1 ...

Only top voted, non community-wiki answers of a minimum length are eligible