网友 赫兹梓籽 说:
*帖最后由 赫兹梓籽 于 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关了试试
未经允许不得转载:爱主机 » 求助论坛各位大佬,网站不知道为什么用了cdn后一直重定向
爱主机