lnginx 添加伪静态操作说明
2016-05-05 13:27:54
先进入到nginx的配置文件目录
请输入以下命令
cd命令到: nginx/conf/rewrite 目录
ll 命令查看规则:
输入以下命令
cd命令到: nginx/conf/vhosts
进入到网站配置目录:
打开配置文件:
修改好伪静态调用文件
下面测试下我们配置的文件是否正确吧
输入 命令:
/alidata/server/nginx/sbin/nginx -t
看到:
nginx: the configuration file /alidata/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test is successful
说明伪静态配置成功。
重启 nginx服务器:
/alidata/server/nginx/sbin/nginx -s reload
恭喜您,伪静态配置完成!