source: trunk/dports/www/nginx/files/patch-conf__nginx.conf.diff

Last change on this file was 143534, checked in by cal@…, 4 years ago

nginx: Use fastcgi.conf instead of fastcgi_params

Upstream now recommends the use of fastcgi.conf for new installations, so
switch the file that gets activated by default and patch the default config to
reference it instead.

Closes #50019.

  • Property svn:eol-style set to native
File size: 1.5 KB
  • conf/nginx.conf

    old new  
    4141        #access_log  logs/host.access.log  main;
    4242
    4343        location / {
    44             root   html;
     44            root   share/nginx/html;
    4545            index  index.html index.htm;
    4646        }
    4747
     
    5151        #
    5252        error_page   500 502 503 504  /50x.html;
    5353        location = /50x.html {
    54             root   html;
     54            root   share/nginx/html;
    5555        }
    5656
    5757        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
     
    6363        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    6464        #
    6565        #location ~ \.php$ {
    66         #    root           html;
     66        #    root           share/nginx/html;
    6767        #    fastcgi_pass   127.0.0.1:9000;
    6868        #    fastcgi_index  index.php;
    69         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    70         #    include        fastcgi_params;
     69        #    include        fastcgi.conf;
    7170        #}
    7271
    7372        # deny access to .htaccess files, if Apache's document root
     
    8786    #    server_name  somename  alias  another.alias;
    8887
    8988    #    location / {
    90     #        root   html;
     89    #        root   share/nginx/html;
    9190    #        index  index.html index.htm;
    9291    #    }
    9392    #}
     
    109108    #    ssl_prefer_server_ciphers  on;
    110109
    111110    #    location / {
    112     #        root   html;
     111    #        root   share/nginx/html;
    113112    #        index  index.html index.htm;
    114113    #    }
    115114    #}
Note: See TracBrowser for help on using the repository browser.