如题
之前用的https现在改回来了 相关301跳转和443端口配置均删除
但是浏览器输入主域名还是跳到https
但是加上/index.html就正常

配置已经精简到最小配置了
firefox chrome dege ie 都这样

nginx.conf

  • user apache apache;
  • worker_processes auto;
  • - - #pid logs/nginx.pid;
  • - - events {
  • worker_connections 1024;
  • use epoll;
  • multi_accept on;
  • }
  • - - http {
  • ### 日志处理 ###
  • log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  • '$status $body_bytes_sent "$http_referer" '
  • '"$http_user_agent" "$http_x_forwarded_for"';
  • access_log off;
  • - ### 业务相关 ###
  • include mime.types;
  • default_type text/html;
  • charset utf-8;
  • - - # gzip
  • #include gzip.conf;
  • - # 缓存相关
  • - #引用waf配置
  • include waf.conf;
  • - #引用网站配置
  • include /opt/openresty/nginx/conf/abc.local;
  • - - - - }复制代码

abc.local

  • server {
  • listen 80;
  • server_name bbs.abc.cn;
  • root /var/www/abc;
  • index index.php index.html;
  • if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})") {
  • set $year $1;
  • set $month $2;
  • set $day $3;
  • }
  • access_log /opt/openresty/nginx/logs/$year-$month-$day-findbbs-access123.log;
  • error_log /opt/openresty/nginx/logs/abc-error123.log;
  • }复制代码