nginx 설정 - /etc/nginx/nginx.conf

불당   
   조회 4852  

아래는 최적화된 config 입니다.

 

user  nginx;
worker_processes  2;
#worker_processes  auto;

error_log  /var/log/nginx/error.log warn;
#error_log  /var/log/nginx/error.log crit;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
    multi_accept        on;
    use                 epoll;
}

http {
    server_tokens off;
    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;
    tcp_nodelay    on;
    keepalive_timeout  20s;
    # reduce the data that needs to be sent over network
    gzip  on;
    gzip_min_length 1024;
    gzip_comp_level 5;
    gzip_proxied any;
    gzip_types
      application/atom+xml
      application/javascript
      application/json
      application/ld+json
      application/manifest+json
      application/rss+xml
      application/vnd.geo+json
      application/vnd.ms-fontobject
application/x-font-ttf
      application/x-web-app-manifest+json
      application/xhtml+xml
      application/xml
      font/opentype
      image/bmp
      image/svg+xml
      image/x-icon
      text/cache-manifest
      text/css
      text/plain
      text/vcard
      text/vnd.rim.location.xloc
      text/vtt
      text/x-component
      text/x-cross-domain-policy;
    include /etc/nginx/conf.d/*.conf;
}
 
 

 

- opencode.co.kr -


제목Page 1/22
     
2015-09   77044   불당
2011-12   196201   불당
2015-09   75032   불당
2016-05   37012   불당
2015-10   79025   불당
2015-11   58466   불당
2018-06   1768   불당
2018-06   1750   불당
2018-05   2297   불당
2018-05   1434   불당
2017-08   2141   불당
2017-08   2144   불당
2016-10   3845   불당
2016-10   4033   불당
2016-06   4114   불당
2016-06   8649   불당
2016-06   8334   불당
2016-06   4094   불당
2016-05   4030   불당
2016-04   4354   불당
2016-03   5526   불당
2016-04   6177   불당
2016-04   4853   불당
2016-03   4690   불당
2016-03   5196   불당
2016-03   3933   불당