Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 3.86 KB | None | 0 0
  1. # For more information on configuration, see:
  2. #   * Official English Documentation: http://nginx.org/en/docs/
  3. #   * Official Russian Documentation: http://nginx.org/ru/docs/
  4.  
  5. user nginx;
  6. worker_processes auto;
  7. error_log /var/log/nginx/error.log;
  8. pid /var/run/nginx.pid;
  9.  
  10. # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
  11. include /usr/share/nginx/modules/*.conf;
  12.  
  13. events {
  14.     worker_connections 1024;
  15. }
  16.  
  17. http {
  18.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  19.                       '$status $body_bytes_sent "$http_referer" '
  20.                       '"$http_user_agent" "$http_x_forwarded_for"';
  21.  
  22.     access_log  /var/log/nginx/access.log  main;
  23.  
  24.     sendfile            on;
  25.     tcp_nopush          on;
  26.     tcp_nodelay         on;
  27.     keepalive_timeout   65;
  28.     types_hash_max_size 2048;
  29.  
  30.     include             /etc/nginx/mime.types;
  31.     default_type        application/octet-stream;
  32.  
  33.     # Load modular configuration files from the /etc/nginx/conf.d directory.
  34.     # See http://nginx.org/en/docs/ngx_core_module.html#include
  35.     # for more information.
  36.     include /etc/nginx/conf.d/*.conf;
  37.  
  38.     index   index.html index.htm;
  39.  
  40.     server {
  41.         listen       80 default_server;
  42.         listen       [::]:80 default_server;
  43.         server_name  localhost;
  44.         root         /usr/share/nginx/acm-admin/dist/acmAdmin;
  45.  
  46.         # Load configuration files for the default server block.
  47.         include /etc/nginx/default.d/*.conf;
  48.  
  49.          location /dev/ {
  50.            alias /usr/share/nginx/acm-admin-dev/dist/acmAdmin;
  51.          }
  52.  
  53.  
  54.         # redirect server error pages to the static page /40x.html
  55.         #
  56.         error_page 404 /index.html;
  57.             location = /index.html {
  58.         }
  59.  
  60.         # redirect server error pages to the static page /50x.html
  61.         #
  62.         error_page 500 502 503 504 /50x.html;
  63.             location = /50x.html {
  64.         }
  65.  
  66.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  67.         #
  68.         #location ~ \.php$ {
  69.         #    proxy_pass   http://127.0.0.1;
  70.         #}
  71.  
  72.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  73.         #
  74.         #location ~ \.php$ {
  75.         #    root           html;
  76.         #    fastcgi_pass   127.0.0.1:9000;
  77.         #    fastcgi_index  index.php;
  78.         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  79.         #    include        fastcgi_params;
  80.         #}
  81.  
  82.         # deny access to .htaccess files, if Apache's document root
  83.         # concurs with nginx's one
  84.         #
  85.         #location ~ /\.ht {
  86.         #    deny  all;
  87.         #}
  88.     }
  89.  
  90. # Settings for a TLS enabled server.
  91. #
  92. #    server {
  93. #        listen       443 ssl http2 default_server;
  94. #        listen       [::]:443 ssl http2 default_server;
  95. #        server_name  _;
  96. #        root         /usr/share/nginx/html;
  97. #
  98. #        ssl_certificate "/etc/pki/nginx/server.crt";
  99. #        ssl_certificate_key "/etc/pki/nginx/private/server.key";
  100. #        # It is *strongly* recommended to generate unique DH parameters
  101. #        # Generate them with: openssl dhparam -out /etc/pki/nginx/dhparams.pem 2048
  102. #        #ssl_dhparam "/etc/pki/nginx/dhparams.pem";
  103. #        ssl_session_cache shared:SSL:1m;
  104. #        ssl_session_timeout  10m;
  105. #        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  106. #        ssl_ciphers HIGH:SEED:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!RSAPSK:!aDH:!aECDH:!EDH-DSS-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!SRP;
  107. #        ssl_prefer_server_ciphers on;
  108. #
  109. #        # Load configuration files for the default server block.
  110. #        include /etc/nginx/default.d/*.conf;
  111. #
  112. #        location / {
  113. #        }
  114. #
  115. #        error_page 404 /404.html;
  116. #            location = /40x.html {
  117. #        }
  118. #
  119. #        error_page 500 502 503 504 /50x.html;
  120. #            location = /50x.html {
  121. #        }
  122. #    }
  123.  
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement