标签:
server { listen 80; server_name demo.abc.com ; root /Users/pa200318/demo.cp.com/trunk; index index.php index.html; location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ { access_log off; expires max; } location ~ \.php$ { include /usr/local/etc/nginx/fastcgi_params; include /usr/local/etc/nginx/fastcgi_web; include /usr/local/etc/nginx/fastcgi_mysql; include /usr/local/etc/nginx/fastcgi_ldap; } location ~ /\.ht { deny all; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?$1 last; break; } }
仅供参考
标签:
原文地址:http://www.cnblogs.com/pa200318/p/5164552.html