malsvent 发表于 2011-12-19 20:00:52

都0.8了还是没把php的404弄好

nginx.conf                location ~ .*\.(php|php5)?$
                        {
                              try_files $uri =404;
                              fastcgi_passunix:/tmp/php-cgi.sock;
                              fastcgi_index index.php;
                              include fcgi.conf;
                        }vhost.sh                location ~ .*\.(php|php5)?$
                        {
                              try_files      \$uri =404;
                              fastcgi_passunix:/tmp/php-cgi.sock;
                              fastcgi_index index.php;
                              include fcgi.conf;
                        }这样就行了

要不顺便加上substitutions4nginx-read-only
应该满多人会用到

[ 本帖最后由 malsvent 于 2011-12-19 20:03 编辑 ]

YCYCC 发表于 2011-12-20 10:39:24

留个脚印。

ouchunlai 发表于 2012-9-2 22:01:38

楼主啥意思?也没见军哥发表意见。

难道楼主的意思是只要改那个斜杠?即可完成404?
页: [1]
查看完整版本: 都0.8了还是没把php的404弄好