Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream backend.servers {
- least_conn;
- server 192.168.0.181:9000;
- server 192.168.0.182:9000;
- }
- server {
- listen 80;
- server_name site.laboratorio;
- # redireccion
- return 301 https://$host$request_uri;
- }
- server {
- listen 443 ssl;
- server_name site.laboratorio;
- location / {
- proxy_pass http://backend.servers;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- }
- ssl on;
- ssl_certificate /etc/nginx/ssl_keys/site.laboratorio.crt;
- ssl_certificate_key /etc/nginx/ssl_keys/site.laboratorio.key;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement