您的位置:首页 > 运维架构 > Nginx

Nginx wordpress rewrite

2012-08-15 09:34 246 查看
2012-04-27 14:59 | Nginx host 配置文件

server
{
listen 80;
server_name summerflower.me;

index index.html index.htm index.php;
root /htdocs/www;
if ( -f $request_filename/index.html ){
rewrite (.*) $1/index.html break;
}
if ( -f $request_filename/index.php ){
rewrite (.*) $1/index.php;
}
if ( !-f $request_filename ){
rewrite (.*) /index.php;
}

location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: