taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

fastcgi_no_args_drupal.conf (1885B)


      1 #-*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
      2 ### fastcgi configuration for serving private files.
      3 ## 1. Parameters.
      4 fastcgi_param  QUERY_STRING       q=$uri;
      5 fastcgi_param  REQUEST_METHOD     $request_method;
      6 fastcgi_param  CONTENT_TYPE       $content_type;
      7 fastcgi_param  CONTENT_LENGTH     $content_length;
      8 
      9 fastcgi_param  SCRIPT_NAME        /index.php;
     10 fastcgi_param  REQUEST_URI        $request_uri;
     11 fastcgi_param  DOCUMENT_URI       $document_uri;
     12 fastcgi_param  DOCUMENT_ROOT      $document_root;
     13 fastcgi_param  SERVER_PROTOCOL    $server_protocol;
     14 
     15 fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
     16 fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
     17 
     18 fastcgi_param  REMOTE_ADDR        $remote_addr;
     19 fastcgi_param  REMOTE_PORT        $remote_port;
     20 fastcgi_param  SERVER_ADDR        $server_addr;
     21 fastcgi_param  SERVER_PORT        $server_port;
     22 fastcgi_param  SERVER_NAME        $server_name;
     23 ## PHP only, required if PHP was built with --enable-force-cgi-redirect
     24 fastcgi_param  REDIRECT_STATUS    200;
     25 fastcgi_param SCRIPT_FILENAME $document_root/index.php;
     26 ## HTTPS 'on' parameter.  This requires Nginx version 1.1.11 or
     27 ## later. The if_not_empty flag was introduced in 1.1.11.  See:
     28 ## http://nginx.org/en/CHANGES. If using a version that doesn't
     29 ## support this comment out the line below.
     30 fastcgi_param HTTPS $fastcgi_https if_not_empty;
     31 ## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
     32 #fastcgi_param HTTPS $fastcgi_https;
     33 
     34 ## 2. Nginx FCGI specific directives.
     35 fastcgi_buffers 256 4k;
     36 fastcgi_intercept_errors on;
     37 ## Allow 4 hrs - pass timeout responsibility to upstream.
     38 fastcgi_read_timeout 14400;
     39 fastcgi_index index.php;
     40 ## Hide the X-Drupal-Cache header provided by Pressflow.
     41 fastcgi_hide_header 'X-Drupal-Cache';
     42 ## Hide the Drupal 7 header X-Generator.
     43 fastcgi_hide_header 'X-Generator';