都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 编辑 ] 留个脚印。 楼主啥意思?也没见军哥发表意见。
难道楼主的意思是只要改那个斜杠?即可完成404?
页:
[1]