Guest User

Untitled

a guest
Jun 26th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 7.08 KB | None | 0 0
  1. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  2. nginx: configuration file /etc/nginx/nginx.conf test is successful
  3. # configuration file /etc/nginx/nginx.conf:
  4. user www-data;
  5. worker_processes 1;
  6. pid /run/nginx.pid;
  7. include /etc/nginx/modules-enabled/*.conf;
  8.  
  9. timer_resolution 100ms;
  10. worker_rlimit_nofile 8192;
  11. worker_priority -5;
  12. events {
  13.     worker_connections 2048;
  14.     use epoll;
  15.     # multi_accept on;
  16. }
  17.  
  18. http {
  19.  
  20.     sendfile on;
  21.     tcp_nopush on;
  22.     tcp_nodelay on;
  23.     client_body_timeout 10;
  24.         client_header_timeout 10;
  25.         keepalive_timeout 65;
  26.         send_timeout 10;
  27.  
  28.     types_hash_max_size 2048;
  29.  
  30.     client_body_buffer_size 2m;
  31.     client_max_body_size    4m;
  32.  
  33.  
  34.     include /etc/nginx/mime.types;
  35.     default_type application/octet-stream;
  36.  
  37.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  38.     ssl_prefer_server_ciphers on;
  39.  
  40.     access_log /var/log/nginx/access.log;
  41.     error_log /var/log/nginx/error.log;
  42.  
  43.     gzip on;
  44.     # gzip_vary on;
  45.     gzip_proxied any;
  46.     gzip_comp_level 3;
  47.     gzip_buffers 64 8k;
  48.     gzip_http_version 1.1;
  49.     gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/x-javascript;
  50.  
  51.     include /etc/nginx/conf.d/*.conf;
  52. }
  53.  
  54.  
  55. # configuration file /etc/nginx/modules-enabled/50-mod-http-geoip.conf:
  56. load_module modules/ngx_http_geoip_module.so;
  57.  
  58. # configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
  59. load_module modules/ngx_http_image_filter_module.so;
  60.  
  61. # configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
  62. load_module modules/ngx_http_xslt_filter_module.so;
  63.  
  64. # configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
  65. load_module modules/ngx_mail_module.so;
  66.  
  67. # configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
  68. load_module modules/ngx_stream_module.so;
  69.  
  70. # configuration file /etc/nginx/mime.types:
  71.  
  72. types {
  73.     text/html                             html htm shtml;
  74.     text/css                              css;
  75.     text/xml                              xml;
  76.     image/gif                             gif;
  77.     image/jpeg                            jpeg jpg;
  78.     application/javascript                js;
  79.     application/atom+xml                  atom;
  80.     application/rss+xml                   rss;
  81.  
  82.     text/mathml                           mml;
  83.     text/plain                            txt;
  84.     text/vnd.sun.j2me.app-descriptor      jad;
  85.     text/vnd.wap.wml                      wml;
  86.     text/x-component                      htc;
  87.  
  88.     image/png                             png;
  89.     image/tiff                            tif tiff;
  90.     image/vnd.wap.wbmp                    wbmp;
  91.     image/x-icon                          ico;
  92.     image/x-jng                           jng;
  93.     image/x-ms-bmp                        bmp;
  94.     image/svg+xml                         svg svgz;
  95.     image/webp                            webp;
  96.  
  97.     application/font-woff                 woff;
  98.     application/java-archive              jar war ear;
  99.     application/json                      json;
  100.     application/mac-binhex40              hqx;
  101.     application/msword                    doc;
  102.     application/pdf                       pdf;
  103.     application/postscript                ps eps ai;
  104.     application/rtf                       rtf;
  105.     application/vnd.apple.mpegurl         m3u8;
  106.     application/vnd.ms-excel              xls;
  107.     application/vnd.ms-fontobject         eot;
  108.     application/vnd.ms-powerpoint         ppt;
  109.     application/vnd.wap.wmlc              wmlc;
  110.     application/vnd.google-earth.kml+xml  kml;
  111.     application/vnd.google-earth.kmz      kmz;
  112.     application/x-7z-compressed           7z;
  113.     application/x-cocoa                   cco;
  114.     application/x-java-archive-diff       jardiff;
  115.     application/x-java-jnlp-file          jnlp;
  116.     application/x-makeself                run;
  117.     application/x-perl                    pl pm;
  118.     application/x-pilot                   prc pdb;
  119.     application/x-rar-compressed          rar;
  120.     application/x-redhat-package-manager  rpm;
  121.     application/x-sea                     sea;
  122.     application/x-shockwave-flash         swf;
  123.     application/x-stuffit                 sit;
  124.     application/x-tcl                     tcl tk;
  125.     application/x-x509-ca-cert            der pem crt;
  126.     application/x-xpinstall               xpi;
  127.     application/xhtml+xml                 xhtml;
  128.     application/xspf+xml                  xspf;
  129.     application/zip                       zip;
  130.  
  131.     application/octet-stream              bin exe dll;
  132.     application/octet-stream              deb;
  133.     application/octet-stream              dmg;
  134.     application/octet-stream              iso img;
  135.     application/octet-stream              msi msp msm;
  136.  
  137.     application/vnd.openxmlformats-officedocument.wordprocessingml.document    docx;
  138.     application/vnd.openxmlformats-officedocument.spreadsheetml.sheet          xlsx;
  139.     application/vnd.openxmlformats-officedocument.presentationml.presentation  pptx;
  140.  
  141.     audio/midi                            mid midi kar;
  142.     audio/mpeg                            mp3;
  143.     audio/ogg                             ogg;
  144.     audio/x-m4a                           m4a;
  145.     audio/x-realaudio                     ra;
  146.  
  147.     video/3gpp                            3gpp 3gp;
  148.     video/mp2t                            ts;
  149.     video/mp4                             mp4;
  150.     video/mpeg                            mpeg mpg;
  151.     video/quicktime                       mov;
  152.     video/webm                            webm;
  153.     video/x-flv                           flv;
  154.     video/x-m4v                           m4v;
  155.     video/x-mng                           mng;
  156.     video/x-ms-asf                        asx asf;
  157.     video/x-ms-wmv                        wmv;
  158.     video/x-msvideo                       avi;
  159. }
  160.  
  161. # configuration file /etc/nginx/conf.d/website.conf:
  162. server {
  163.     listen       80;
  164.     server_name 0.0.0.0;
  165.  
  166.  
  167.     access_log  /var/log/nginx/website.access.log;
  168.     error_log  /var/log/nginx/website.error.log;
  169.     charset utf-8;
  170.     location / {
  171.         include uwsgi_params;
  172.         uwsgi_pass unix:///path/to/socket.sock;
  173.     }
  174. }
  175.  
  176.  
  177. # configuration file /etc/nginx/uwsgi_params:
  178.  
  179. uwsgi_param  QUERY_STRING       $query_string;
  180. uwsgi_param  REQUEST_METHOD     $request_method;
  181. uwsgi_param  CONTENT_TYPE       $content_type;
  182. uwsgi_param  CONTENT_LENGTH     $content_length;
  183.  
  184. uwsgi_param  REQUEST_URI        $request_uri;
  185. uwsgi_param  PATH_INFO          $document_uri;
  186. uwsgi_param  DOCUMENT_ROOT      $document_root;
  187. uwsgi_param  SERVER_PROTOCOL    $server_protocol;
  188. uwsgi_param  REQUEST_SCHEME     $scheme;
  189. uwsgi_param  HTTPS              $https if_not_empty;
  190.  
  191. uwsgi_param  REMOTE_ADDR        $remote_addr;
  192. uwsgi_param  REMOTE_PORT        $remote_port;
  193. uwsgi_param  SERVER_PORT        $server_port;
  194. uwsgi_param  SERVER_NAME        $server_name;
  195.  
  196. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  197. nginx: configuration file /etc/nginx/nginx.conf test is successful
  198. nginx version: nginx/1.14.0 (Ubuntu)
Add Comment
Please, Sign In to add comment