1.Nginx 常用命令 1.conf 配置文件 2.html 网站根目录 3.logs 网站日志 2、Nginx重写模块 在文件中 vim conf/nginx.conf 写入 在location 中写入 1、把php后面的字段(.*) 、?id=$1赋给一个变量PATH_INFO location ~ \.php(.*)${ fastcgi_param PATH_INFO $1; } 2、在server段中添加 rewrite ^/goods/