配置nginx访问本地目录

location ~ .php$ {

    root           /usr/local/nginx/html;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;

    autoindex on;
    autoindex_exact_size on;
    autoindex_localtime on;

    fastcgi_param  SCRIPT_FILENAME  /usr/local/nginx/html/$fastcgi_script_name;
    include        fastcgi_params;
}
Last modification:December 17th, 2018 at 01:40 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment