Blogger Information
Blog 6
fans 0
comment 1
visits 4361
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Nginx配置 pathinfo
jaronHu的博客
Original
675 people have browsed it

#配置文件内容如下:

server {

    listen 80;

    server_name 146.196.53.246;


    root /data/zabbix/;

    index index.html index.htm index.php;


    #location / {

    #    try_files $uri $uri/ /index.php;

    #}

    location ~ \.mp4$ {

                mp4;

        }

    location ~ \.php {

        fastcgi_pass 127.0.0.1:9000;

        fastcgi_index index.php;

        include fastcgi.conf;

        set $real_script_name $fastcgi_script_name;

            if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {

                set $real_script_name $1;

                set $path_info $2;

            }

        fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;

        fastcgi_param SCRIPT_NAME $real_script_name;

        fastcgi_param PATH_INFO $path_info;

    }

    #location ~ \.php$ {

    #    try_files $uri =404;


     #   include fastcgi.conf;

     #   fastcgi_pass 127.0.0.1:9000;

    #}

}



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post