军哥帮忙看看是不是配置错了 500
okaybt.com 显示500但是输入 okaybt.com/index.php就没问题server
{
listen 80;
#listen [::]:80;
server_name www.okaybt.com okaybt.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/www.okaybt.com;
include other.conf;
#error_page 404 /404.html;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location /{
include /home/wwwroot/www.okaybt.com/.htaccess1;
}
access_log/home/wwwlogs/www.okaybt.com.logaccess;
}
.htaccess1下我写的是
# nginx rewriterule
rewrite ^(.*)$ $1/?$1 last; 可能伪静态导致的
页:
[1]