注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
网友 赫兹梓籽 说:
*帖最后由 赫兹梓籽 于 2022-7-30 19:56 编辑
求助论坛各位大佬,网站不知道为什么用了cdn后一直说重定向过多
这是nginx配置
******
{
listen 80; #listen end
******_name xxxx.com; #******_name end
index index.html index.htm index.php; #index end
set $subdomain ”;
**ot /home/www**ot/php7/domain/bbs.xxxx.site/web$subdomain;
ret**n 301 https://$host$re*uest_**i; #force_**l end
include /home/www**ot/php7/rew**te/xiuno.conf; #rew**te end
#er**r_page
er**r_page 400 /Er**rPages/400.html;
er**r_page 403 /Er**rPages/403.html;
er**r_page 404 /Er**rPages/404.html;
er**r_page 502 /Er**rPages/502.html;
location ~ /Er**rPages/(400|401|403|404|405|502|503)\.html$
{
**ot /home/www**ot/php7/domain/bbs.xxxxxi.site/web;
}
location ~ .*\.php$
{
fastcgi_pa** unix:/tmp/php-cgi-php7-bbs.xxxx.site.sock;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_param DOCUMENT_ROOT /home/www**ot/php7/domain/bbs.xxxx.site/web$subdomain;
fastcgi_param SCRIPT_FILENAME /home/www**ot/php7/domain/bbs.xxxx.site/web$subdomain$fastcgi_sc**pt_name;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$
{
expires 30d;
}
location ~ .*\.(js|c**)$
{
expires 12h;
}
location ~* \.(htm)$ {
rew**te &*uot;^(.*)/(.+?).htm(.*?)$&*uot; $1/index.php?$2.htm$3 last;
}
acce**_log off; #acce**_log end
er**r_log /dev/null; #er**r_log end
}
网友 蝙蝠侠 说:
把强制https关了试试
贝壳主机网

