Nginx wordpress rewrite
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; } }