2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
1
This message probably indicates that your web server is not listening on port 443 aka HTTPS
wget localhost:443
Connecting to localhost (localhost)|127.0.0.1|:443... failed: Connection refused
You will need to install a SSL cert on your Apache, and configure it to listen on HTTPS.
After that is done, verify that wget localhost:443
works.
Optional. To use your your domain name for testing, you can hard-code mystaging.com to local IP. Edit /etc/hosts
and add this entry
127.0.0.1 mystaging.com
0
Does Apache have a BindAddress or Listen directive that's only listening to port 443 on the public IP address? https://httpd.apache.org/docs/2.4/bind.html
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
Thanks, As I mentioned, there is already a cert for the domain for the app (and it is not for localhost). So I need to create another cert (and install it) for this instance just for testing? thank again
Yes as your Apache rewrite rule redirects from http to https. You can use a self-signed cert and instruct wget to ignore (using --no-check-certificate if I am not wrong). Alternatively, remove the redirect to https; you can configure your LB to redirect instead.