Advertisement
atross

atross:nginx.conf

Oct 18th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. include /etc/nginx/conf.d/*.conf;
  2.  
  3. server {
  4. listen 80 default_server;
  5. listen [::]:80 default_server;
  6. server_name _;
  7. root /usr/share/nginx/html;
  8.  
  9. # Load configuration files for the default server block.
  10. include /etc/nginx/default.d/*.conf;
  11.  
  12. location / {
  13. }
  14.  
  15. location /blog {
  16. proxy_pass http://10.10.229.11:3001;
  17. proxy_set_header Host $http_host; # required for docker client's sake
  18. proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
  19. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  20. proxy_read_timeout 900;
  21. }
  22.  
  23. error_page 404 /404.html;
  24. location = /40x.html {
  25. }
  26.  
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement