gpt4 book ai didi

php - nginx - 在内部重定向到 "/index.html"时重写或内部重定向周期

转载 作者:可可西里 更新时间:2023-11-01 14:02:59 24 4
gpt4 key购买 nike

<分区>

我无法弄清楚为什么会发生此错误:“在内部重定向到“/index.html”时重写或内部重定向循环”

我找到了一个 similar post 并根据我阅读的内容尝试了各种建议,但无济于事。

这是我的 nginx 配置。任何帮助将不胜感激!

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

root /usr/share/nginx/html/public;
index index.php;

# Make site accessible from http://localhost/
server_name ourdomain.com;

location @handler {
rewrite / /index.php
}

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
# add the following line in for added security.
try_files $uri =403;
}
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com