Home CentOS7 Nginx nginx.conf 파일 백업

Nginx nginx.conf 파일 백업

by maxblog
0 comment
user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
	
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    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  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

  
	gzip          on;
	gzip_comp_level     5;
	gzip_min_length    256;

    gzip_vary on;
    gzip_proxied any;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;

	gzip_types
    	application/atom+xml
    	application/javascript
    	application/json
    	application/rss+xml
    	application/vnd.ms-fontobject
    	application/x-font-ttf
    	application/x-font-opentype
    	application/x-font-truetype
    	application/x-javascript
    	application/x-web-app-manifest+json
    	application/xhtml+xml
    	application/xml
    	font/eot
    	font/opentype
    	font/otf
    	image/svg+xml
    	image/x-icon
    	image/vnd.microsoft.icon
    	text/css
    	text/plain
    	text/javascript
    	text/x-component;

	gzip_disable  "MSIE [1-6]\.(?!.*SV1)";



	include /etc/nginx/conf.d/*.conf;
    

	charset uft-8;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; 

  
	client_max_body_size 2048M; 

	fastcgi_buffers 8 16k;
	fastcgi_buffer_size 32k;
	fastcgi_connect_timeout 300;
	fastcgi_send_timeout 300;
	fastcgi_read_timeout 300;

    # 캐시 디렉토리와 캐시 용량 설정
    proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off;

}

좋아할만한 추천 글

Leave a Comment

Soledad is the Best Newspaper and Magazine WordPress Theme with tons of options and demos ready to import. This theme is perfect for blogs and excellent for online stores, news, magazine or review sites.

Buy Soledad now!

Edtior's Picks

Latest Articles

ⓒ 2023.  FUNCOM all rights reserved.