【已完成】Nginx配置文件,还原默认怎么操作
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:Windows 免费版 7.9.0系统版本:Windows Server 2019 Datacenter (build 17763) x64 (Py3.8.6)
问题描述:Nginx 1.22.0
相关截图(日志、错误):
忘记自己改动了Nginx配置文件的哪些地方,前前后后修改过很多次。
所以想还原默认配置。请问该怎么操作呢。
您好,这个是windows面板中Nginx1.22的默认配置文件
worker_processes auto;
worker_rlimit_nofile 51200;
events
{
worker_connections 51200;
multi_accept on;
}
http {
include mime.types;
#include luawaf.conf;
include proxy.conf;
default_typeapplication/octet-stream;
server_names_hash_bucket_size 512;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
gzip on;
gzip_min_length1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE \.";
limit_conn_zone $binary_remote_addr zone=perip:10m;
limit_conn_zone $server_name zone=perserver:10m;
server_tokens off;
access_log off;
server {
listen 80;
server_namelocalhost;
#charset koi8-r;
#access_loglogs/host.access.logmain;
location / {
root html;
indexindex.html index.htm;
}
location /nginx_status {
allow 127.0.0.1;
deny all;
stub_status on;
access_logoff;
}
}
include vhost/*.conf;
#加载vhost目录下的虚拟主机配置文件
}
大炮运维V587 发表于 2023-11-17 09:44
您好,这个是windows面板中Nginx1.22的默认配置文件
谢谢了,这就去替换
页:
[1]