Código BASH:
Ver original
[09:44 ]-[vagrant@varnish]-[~] $ telnet localhost 443 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
pero desde fuera no se puede acceder
Código BASH:
Ver original
jordi@jordi-GL552VW:~$ telnet varnish.local.lan 443 Trying 192.168.56.103... telnet: Unable to connect to remote host: Connection timed out
La instalación por defecto con con el puerto 80 funcionaba bien....
Código BASH:
Ver original
[09:44 ]-[vagrant@varnish]-[~] $ netstat -tulnp (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp6 0 0 :::22 :::* LISTEN - udp 0 0 0.0.0.0:68 0.0.0.0:* - udp 0 0 192.168.56.103:123 0.0.0.0:* - udp 0 0 10.0.2.15:123 0.0.0.0:* - udp 0 0 127.0.0.1:123 0.0.0.0:* - udp 0 0 0.0.0.0:123 0.0.0.0:* - udp6 0 0 fe80::a00:27ff:fe44:123 :::* - udp6 0 0 fe80::a00:27ff:fe54:123 :::* - udp6 0 0 ::1:123 :::* - udp6 0 0 :::123 :::* -
Código BASH:
Ver original
$ more /etc/nginx/sites-available/default server { listen 443 ssl; server_name varnish.local.lan; ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/nginx.key; location / { proxy_pass http://127.0.0.1:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Port 443; proxy_set_header Host $host; } }
Tengo la misma configuración en una EC2 de Amazon y funciona bien.....
Quiero montar este para desarrollar...
Gracias