Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nginx -T
- nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
- nginx: configuration file /etc/nginx/nginx.conf test is successful
- # configuration file /etc/nginx/nginx.conf:
- user www-data;
- worker_processes auto;
- worker_priority 10;
- worker_rlimit_nofile 2048;
- pid /run/nginx.pid;
- timer_resolution 20ms;
- pcre_jit on;
- include /etc/nginx/modules-enabled/*.conf;
- events {
- use epoll;
- worker_connections 512;
- }
- http {
- open_file_cache max=2048 inactive=60;
- open_file_cache_errors off;
- ## open_file_cache_min_uses 1;
- ## open_file_cache_valid 60s;
- output_buffers 4 32k;
- aio threads;
- directio 1m;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- postpone_output 1000;
- keepalive_timeout 120;
- server_tokens off;
- server_names_hash_bucket_size 64;
- server_name_in_redirect off;
- types_hash_max_size 2048;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- log_format main_ext
- '$remote_addr - $remote_user [$time_local] "$request" '
- '$status '
- '$body_bytes_sent '
- '"$http_referer" '
- '"$http_user_agent" '
- '"$http_x_forwarded_for" '
- 'rt=$request_time '
- 'ua="$upstream_addr" '
- 'us="$upstream_status" '
- 'ut="$upstream_response_time" '
- 'ul="$upstream_response_length" '
- 'cs=$upstream_cache_status'
- ;
- ## access_log off;
- access_log /var/log/nginx/access.log main_ext;
- log_subrequest on;
- ## error_log /var/log/nginx/error.log;
- error_log /var/log/nginx/error.log info;
- log_not_found off;
- ### limit HTTP 'Content-Range' / 'Accept-Range'
- max_ranges 2;
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- # configuration file /etc/nginx/conf.d/http:gzip.conf:
- gzip on;
- gunzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_http_version 1.1;
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
- gzip_buffers 32 8k;
- gunzip_buffers 32 8k;
- # configuration file /etc/nginx/sites-enabled/http:minsk-energo:
- server {
- listen 80 default_server bind deferred;
- server_name _ "" " ";
- include snippets/loc.deny.dotfiles;
- location / {
- include uwsgi_params;
- uwsgi_pass unix:///run/uwsgi/EmcosWebServices.sock;
- }
- }
- # configuration file /etc/nginx/snippets/loc.deny.dotfiles:
- location ~ /\. {
- include snippets/area.internal;
- }
- # configuration file /etc/nginx/snippets/area.internal:
- ### to use within `location'
- access_log off;
- error_log off;
- log_not_found off;
- internal;
- # configuration file /etc/nginx/uwsgi_params:
- uwsgi_param QUERY_STRING $query_string;
- uwsgi_param REQUEST_METHOD $request_method;
- uwsgi_param CONTENT_TYPE $content_type;
- uwsgi_param CONTENT_LENGTH $content_length;
- uwsgi_param REQUEST_URI $request_uri;
- uwsgi_param PATH_INFO $document_uri;
- uwsgi_param DOCUMENT_ROOT $document_root;
- uwsgi_param SERVER_PROTOCOL $server_protocol;
- uwsgi_param REQUEST_SCHEME $scheme;
- uwsgi_param HTTPS $https if_not_empty;
- uwsgi_param REMOTE_ADDR $remote_addr;
- uwsgi_param REMOTE_PORT $remote_port;
- uwsgi_param SERVER_PORT $server_port;
- uwsgi_param SERVER_NAME $server_name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement