Advertisement
sergio_educacionit

Laboratorio: proxy reverso 'nginx'

Aug 1st, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. server {
  2. listen 80; # Escucha en el puerto 80
  3. server_name laboratorio.proxy; # Nombre del dominio
  4.  
  5. location / {
  6. proxy_pass http://192.168.43.155; # Dirección del servidor backend
  7. proxy_set_header Host $host;
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. proxy_set_header X-Forwarded-Proto $scheme;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement