赞
踩
centos7,nginx+php fpm部署nextcloud
都搞完了以后,跑起来的时候出现“500 Internal Server Error。 nginx/1.12.2”
查log,发现报错信息
rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/", client: 202.xx.xx.xx, server: servername, request: "GET / HTTP/1.1", host: "servername"
搜了一下,有的说是重定向的问题,但是解决方案试了下没搞定
配置文件如下,能否帮忙看看哪里的问题?
upstream php-handler {
server 127.0.0.1:9000;
#server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name servername;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name servername;
ssl_certificate /etc/nginx/cert/nextcloud.crt;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。