Advertisement
Sergio_Istea

reverse proxy example

Jun 6th, 2024 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name example.com;
  5.  
  6. # en este caso la peticion solicita por el raiz
  7. location / {
  8.  
  9. proxy_set_header Host $host;
  10. proxy_set_header X-Real-IP $remote_addr;
  11.  
  12. # direccion ip y puerto del servidor que contiene el recurso
  13. proxy_pass http://1.2.3.4:8000;
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement