我正在尝试用php5-fpm和nginx在joomla3上建立网站。它可以工作,但只能在主页上运行。其他带有.html扩展名'/reports/april.html‘的页面无法工作,它会返回404Not found错误。我猜我的nginx配置文件中遗漏了什么,请给我一个提示。
server{
server_name acbr.loc;
access_log /var/log/nginx/acbr.access.log;
error_log /var/log/nginx/acbr.error.log;
root /home/oleshko/design/acbr;
location ~ \.php$ {
try_files $uri = 404;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# порядок индексов
location /
{
index index.php index.html index.htm;
}
}发布于 2016-04-16 18:55:11
docs.joomla.org/Nginx关闭原因))
https://stackoverflow.com/questions/36657976
复制相似问题