2016-10-13 00:16:48 点击量:89 标签: 收藏本文
server { fastcgi_intercept_errors on; listen 80; server_name localhost; charset utf-8; root E:/php; index index.php index.html index.htm; location / { autoindex on; try_files $uri $uri/ @rewrite; } location @rewrite { rewrite (/[a-z0-9]+/)(.+) $1index.php/$2; } location ~* /protected/.* { deny all; } location ~ /\.ht { deny all; } include alias/*.conf; location ~* \.php/?.*$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME E:/php$fastcgi_script_name; include fastcgi_params; } }
location ~* /phpmyadmin.* { alias G:/server/bin/phpmyadmin; index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME G:/server/bin$fastcgi_script_name; include fastcgi_params; }