Guest User

Untitled

a guest
Mar 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  2. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
  3. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  4. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
  5. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  6. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
  7. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  8. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
  9. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  10. nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
  11. nginx: [emerg] still could not bind()
  12.  
  13. 1 ? Ss 0:00 nginx: master process nginx -g daemon off;
  14. 4042 ? S 0:00 nginx: worker process
  15. 4063 pts/0 S+ 0:00 grep nginx
  16.  
  17. worker_processes 1;
  18.  
  19. user nobody nogroup;
  20. pid /tmp/nginx.pid;
  21. error_log /tmp/logs/nginx.error.log;
  22.  
  23. events {
  24. worker_connections 1024;
  25. accept_mutex off;
  26. }
  27.  
  28. http {
  29. include mime.types;
  30. default_type application/octet-stream;
  31. access_log /tmp/logs/nginx.access.log combined;
  32. sendfile on;
  33.  
  34. server {
  35. proxy_http_version 1.1; # this is essential for chunked responses to work
  36.  
  37. listen 80; ## listen for ipv4; this line is default and implied
  38. listen [::]:80 default ipv6only=on; ## listen for ipv6
  39. client_max_body_size 4G;
  40. server_name _;
  41.  
  42.  
  43. gzip on;
  44. gzip_vary on;
  45. gzip_proxied any;
  46. gzip_comp_level 6;
  47. gzip_buffers 16 8k;
  48. gzip_http_version 1.1;
  49. gzip_types application/javascript text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  50.  
  51. keepalive_timeout 5;
  52.  
  53. location /cutting/ {
  54. alias /cutting/;
  55. }
  56.  
  57. location / {
  58. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  59. proxy_set_header Host $http_host;
  60.  
  61. # UNCOMMENT LINE BELOW IF THIS IS BEHIND A SSL PROXY
  62. #proxy_set_header X-Forwarded-Proto https;
  63.  
  64. proxy_redirect off;
  65. proxy_pass http://localhost:8000;
  66. }
  67. }
  68. }
Add Comment
Please, Sign In to add comment