Mastering Nginx
The NGINX HTTP Server [ 144 ] Directive Explanation fastcgi_next_upstream Indicates the conditions under which the next FastCGI ...
Chapter 6 [ 145 ] Directive Explanation fastcgi_pass_header Overrides the disabled headers set in fastcgi_hide_header, allowing ...
The NGINX HTTP Server [ 146 ] An example Drupal configuration Drupal (http://drupal.org) is a popular open source content manage ...
Chapter 6 [ 147 ] # For not signaling a 404 in the error log whenever the # system/files directory is accessed add the line belo ...
The NGINX HTTP Server [ 148 ] location ~* /sites/default/files/advagg_css/css_ [[:alnum:]]+\.css$ { And for JavaScript is as fol ...
Chapter 6 [ 149 ] open_file_cache_valid 45s; open_file_cache_min_uses 2; open_file_cache_errors off; } # PDFs and powerpoint fil ...
The NGINX HTTP Server [ 150 ] # Pseudo-streaming of FLV files location ^~ /sites/default/files/video/flv { location ~* ^/sites/d ...
Chapter 6 [ 151 ] include fastcgi_private_files.conf; fastcgi_pass 127.0.0.1:9000; } } Replicate the Apache directive of Drupal ...
The NGINX HTTP Server [ 152 ] include fastcgi_private_files.conf; fastcgi_pass 127.0.0.1:9000; } ## (Drupal 6) ## Restrict acces ...
Chapter 6 [ 153 ] ## (Drupal 6: use only one) try_files $uri /index.php?q=$uri; } # XML Sitemap support. location = /sitemap.xml ...
The NGINX HTTP Server [ 154 ] Wiring NGINX and uWSGI together The Python WSGI (Web Server Gateway Interface) is an interface spe ...
Chapter 6 [ 155 ] see http://uwsgi-docs.readthedocs.org/en/latest/Emperor.html and http://projects.unbit.it/uwsgi/wiki/Example u ...
The NGINX HTTP Server [ 156 ] uwsgi_param UWSGI_FASTROUTER_KEY $host; uwsgi_pass emperor; } # the robots.txt file is found under ...
Chapter 6 [ 157 ] Summary In this chapter, we have explored a number of directives used to make NGINX serve files over HTTP. Not ...
...
NGINX for the Developer Throughout the book so far, we have seen how to configure NGINX for a number of different scenarios. Wha ...
NGINX for the Developer [ 160 ] Caching was introduced in Chapter 5, Reverse Proxy Advanced Topics. In this section, we will tak ...
Chapter 7 [ 161 ] Any image will be cached for as long as possible, due to the images also being stored in the database, making ...
NGINX for the Developer [ 162 ] Caching in the database If your application currently caches prerendered pages in a database, it ...
Chapter 7 [ 163 ] If your application reads request arguments to construct a page, then the $memcached_ key should include these ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf