LNMP下修改rewrite

xeon Post in Computer Technical,Tags: , ,
0

由于军哥的LNMP有设置多个虚拟机的批处理,我又不需要。所以没办法把原来写好的wordpress.conf rewrite的文件包含进来。修改nginx.conf,将wordpress.conf 加进来即可。记住,这个仅适用于军哥的LNMP

server
{
listen       80;
server_name www.xeonlin.com;
index index.html index.htm index.php;
root  /home/wwwroot;
include wordpress.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_pass  unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}

location /status {
stub_status on;
access_log   off;
}

/usr/local/nginx/sbin/nginx -s reload 重启即可

« Prev: :Next »

Leave a Reply