I followed the official ghost install guide for Ubuntu 16.04. I’m using AWS and everything is fine, but for some reason, I can’t connect via AWS Public DNS:
This site can’t be reached
compute-1.amazonaws refused to connect.
Try:
- Checking the connection
- Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
I can connect to my IP however, though it just states:
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.
Commercial support is available at nginx.Thank you for using nginx.
/etc/nginx/sites-available/compute-1.amazonaws.conf
server {
listen 80;
listen [::]:80;server_name compute-1.amazonaws; root /var/www/ghost/system/nginx-root; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:2368; } location ~ /.well-known { allow all; }