由/usr/local/nginx/conf/nginx.conf 复制而来-----注意如何配置支持pathinfo
server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name test_zb.photos.caomall.net; index index.html index.htm index.php; root /home/wwwroot/default/photos/Public; #error_page 404 /404.html; include enable-php-pathinfo.conf;//~~~~~~~~~`这里path-info 需要加上,否则不支持pathinfo~~~~,不支持require函数引用文件方式
//~~~~~~~~~否则 。tp的访问模式不一定可以;
location /nginx_status { stub_status on; access_log off; } location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*.(js|css)?$ { expires 12h; } location ~ /. { deny all; } access_log /home/wwwlogs/access.log; }