当前位置:论坛首页 > Linux面板 > 求助

【已解答】nginx重启报错

发表在 Linux面板2021-8-9 18:43 [复制链接] 3 1533

QQ截图20210809184146.png
RT咋解决啊
使用道具 举报 只看该作者 回复
发表于 2021-8-9 19:14:48 | 显示全部楼层
您好,您有个配置文件的  server_name  是空  导致的,建议排查下网站的配置文件 server_name 部分。
使用道具 举报 回复 支持 反对
发表于 2021-8-9 22:21:53 | 显示全部楼层
大炮运维V587 发表于 2021-8-9 19:14
您好,您有个配置文件的  server_name  是空  导致的,建议排查下网站的配置文件 server_name 部分。 ...

  1. user  www www;
  2. worker_processes auto;
  3. error_log  /www/wwwlogs/nginx_error.log  crit;
  4. pid        /www/server/nginx/logs/nginx.pid;
  5. worker_rlimit_nofile 51200;

  6. events
  7.     {
  8.         use epoll;
  9.         worker_connections 5000;
  10.         multi_accept on;
  11.     }

  12. http
  13.     {
  14.         include       mime.types;
  15.                 #include luawaf.conf;

  16.                 include proxy.conf;

  17.         default_type  application/octet-stream;

  18.         server_names_hash_bucket_size 512;
  19.         client_header_buffer_size 128k;
  20.         large_client_header_buffers 4 32k;
  21.         client_max_body_size 50m;

  22.         sendfile   on;
  23.         tcp_nopush on;

  24.         keepalive_timeout 120;

  25.         tcp_nodelay on;

  26.         fastcgi_connect_timeout 300;
  27.         fastcgi_send_timeout 300;
  28.         fastcgi_read_timeout 300;
  29.         fastcgi_buffer_size 64k;
  30.         fastcgi_buffers 4 64k;
  31.         fastcgi_busy_buffers_size 128k;
  32.         fastcgi_temp_file_write_size 256k;
  33.                 fastcgi_intercept_errors on;

  34.         gzip on;
  35.         gzip_min_length 1k;
  36.         gzip_buffers     4 16k;
  37.         gzip_http_version 1.1;
  38.         gzip_comp_level 2;
  39.         gzip_types     text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
  40.         gzip_vary on;
  41.         gzip_proxied   expired no-cache no-store private auth;
  42.         gzip_disable   "MSIE [1-6]\.";

  43.         limit_conn_zone $binary_remote_addr zone=perip:10m;
  44.                 limit_conn_zone $server_name zone=perserver:10m;

  45.         server_tokens off;
  46.         access_log off;

  47. server
  48.     {
  49.         listen 1328;

  50.         server_name phpmyadmin;
  51.         index index.html index.htm index.php;
  52.         root  /www/server/phpmyadmin;
  53.             location ~ /tmp/ {
  54.                 return 403;
  55.             }

  56.         #error_page   404   /404.html;
  57.         include enable-php.conf;

  58.         location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  59.         {
  60.             expires      30d;
  61.         }

  62.         location ~ .*\.(js|css)?$
  63.         {
  64.             expires      12h;
  65.         }

  66.         location ~ /\.
  67.         {
  68.             deny all;
  69.         }

  70.         access_log  /www/wwwlogs/access.log;
  71.     }
  72. include /www/server/panel/vhost/nginx/*.conf;
  73. }

复制代码
使用道具 举报 回复 支持 反对
发表于 2021-8-9 23:23:42 | 显示全部楼层

您好,是网站的配置文件,只有这里才有server_name 的配置
  1. grep server_name  /www/server/panel/vhost/nginx/*.conf
复制代码

执行后截图
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表