Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. #error_log logs/error.log;
  5. #error_log logs/error.log notice;
  6. #error_log logs/error.log info;
  7.  
  8. #pid logs/nginx.pid;
  9.  
  10.  
  11. events {
  12. worker_connections 1024;
  13. }
  14.  
  15.  
  16. http {
  17. include mime.types;
  18. default_type application/octet-stream;
  19.  
  20. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  21. # '$status $body_bytes_sent "$http_referer" '
  22. # '"$http_user_agent" "$http_x_forwarded_for"';
  23.  
  24. #access_log logs/access.log main;
  25.  
  26. sendfile on;
  27. #tcp_nopush on;
  28.  
  29. #keepalive_timeout 0;
  30. keepalive_timeout 65;
  31.  
  32. #gzip on;
  33.  
  34. upstream app_nodejs {
  35. server 127.0.0.1:3002;
  36. }
  37.  
  38. server {
  39. listen 8080;
  40. server_name localhost;
  41.  
  42. #charset koi8-r;
  43.  
  44. #access_log logs/host.access.log main;
  45.  
  46. location / {
  47. root html;
  48. index index.html index.htm;
  49. }
  50.  
  51. #error_page 404 /404.html;
  52.  
  53. # redirect server error pages to the static page /50x.html
  54. #
  55. error_page 500 502 503 504 /50x.html;
  56. location = /50x.html {
  57. root html;
  58. }
  59.  
  60. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  61. #
  62. #location ~ \.php$ {
  63. # proxy_pass http://127.0.0.1;
  64. #}
  65.  
  66. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  67. #
  68. #location ~ \.php$ {
  69. # root html;
  70. # fastcgi_pass 127.0.0.1:9000;
  71. # fastcgi_index index.php;
  72. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  73. # include fastcgi_params;
  74. #}
  75.  
  76. # deny access to .htaccess files, if Apache's document root
  77. # concurs with nginx's one
  78. #
  79. #location ~ /\.ht {
  80. # deny all;
  81. #}
  82. }
  83.  
  84.  
  85. # another virtual host using mix of IP-, name-, and port-based configuration
  86. #
  87. #server {
  88. # listen 8000;
  89. # listen somename:8080;
  90. # server_name somename alias another.alias;
  91.  
  92. # location / {
  93. # root html;
  94. # index index.html index.htm;
  95. # }
  96. #}
  97.  
  98.  
  99. # HTTPS server
  100. #
  101. #server {
  102. # listen 443 ssl;
  103. # server_name localhost;
  104.  
  105. # ssl_certificate cert.pem;
  106. # ssl_certificate_key cert.key;
  107.  
  108. # ssl_session_cache shared:SSL:1m;
  109. # ssl_session_timeout 5m;
  110.  
  111. # ssl_ciphers HIGH:!aNULL:!MD5;
  112. # ssl_prefer_server_ciphers on;
  113.  
  114. # location / {
  115. # root html;
  116. # index index.html index.htm;
  117. # }
  118. #}
  119. include servers/*;
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement