Advertisement
Sergio_Istea

proxy reverso hginx vhost

Jun 10th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name tu-dominio.com;
  5.  
  6. location / {
  7. proxy_pass http://localhost:8080;
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Real-IP $remote_addr;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement