Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name mydomain.com;
  4. root путь_к_веб_морде;
  5. index index.html;
  6. access_log /var/log/nginx/wildfly.access.log;
  7. error_log /var/log/nginx/wildfly.error.log;
  8. location / {
  9. }
  10. proxy_buffers 16 64k;
  11. proxy_buffer_size 128k;
  12.  
  13. location /api/ {
  14. proxy_pass http://wildfly/api/;
  15. proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  16. proxy_redirect off;
  17.  
  18. proxy_set_header Host $host;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. proxy_set_header X-Forwarded-Proto https;
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement