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

【已完成】Nginx配置文件,还原默认怎么操作

发表在 Windows面板2023-11-16 16:51 [复制链接] 2 1169

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:Windows 免费版 7.9.0

系统版本:Windows Server 2019 Datacenter (build 17763) x64 (Py3.8.6)

问题描述:Nginx 1.22.0

相关截图(日志、错误):

忘记自己改动了Nginx配置文件的哪些地方,前前后后修改过很多次。
所以想还原默认配置。请问该怎么操作呢。
使用道具 举报 只看该作者 回复
发表于 2023-11-17 09:44:48 | 显示全部楼层
您好,这个是windows面板中Nginx1.22的默认配置文件
  1. worker_processes auto;
  2. worker_rlimit_nofile 51200;
  3. events
  4. {
  5.         worker_connections 51200;
  6.         multi_accept on;
  7. }
  8. http {
  9.                 include       mime.types;
  10.                 #include luawaf.conf;
  11.                 include proxy.conf;
  12.         default_type  application/octet-stream;

  13.         server_names_hash_bucket_size 512;
  14.         client_header_buffer_size 32k;
  15.         large_client_header_buffers 4 32k;
  16.         client_max_body_size 50m;

  17.         sendfile   on;
  18.         tcp_nopush on;

  19.         keepalive_timeout 60;

  20.         tcp_nodelay on;

  21.         fastcgi_connect_timeout 300;
  22.         fastcgi_send_timeout 300;
  23.         fastcgi_read_timeout 300;
  24.         fastcgi_buffer_size 64k;
  25.         fastcgi_buffers 4 64k;
  26.         fastcgi_busy_buffers_size 128k;
  27.         fastcgi_temp_file_write_size 256k;
  28.                 fastcgi_intercept_errors on;

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

  38.         limit_conn_zone $binary_remote_addr zone=perip:10m;
  39.                 limit_conn_zone $server_name zone=perserver:10m;

  40.         server_tokens off;
  41.         access_log off;

  42.     server {
  43.         listen       80;
  44.         server_name  localhost;

  45.         #charset koi8-r;

  46.         #access_log  logs/host.access.log  main;

  47.         location / {
  48.             root   html;
  49.             index  index.html index.htm;
  50.         }
  51.                 location /nginx_status {  
  52.                 allow 127.0.0.1;
  53.             deny all;
  54.             stub_status on;  
  55.             access_log  off;  
  56.         }  
  57.     }
  58.     include vhost/*.conf;
  59.     #加载vhost目录下的虚拟主机配置文件
  60. }
复制代码


使用道具 举报 回复 支持 反对
发表于 2023-11-17 10:37:34 | 显示全部楼层
大炮运维V587 发表于 2023-11-17 09:44
您好,这个是windows面板中Nginx1.22的默认配置文件

谢谢了,这就去替换
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表