Hey there,
I setup the ghost installation on an ubuntu 20.04 backend server behind a nginx reverse proxy server.
So the network setup is basically:
A-Record → External IP → Nginx Proxy Server (Internal IP 1) → Ghost Server Nginx (Internal IP 2) → Ghost Node (127.0.0.1)
I can access the ghost installation via the domain record from internal and also external. However, I am not able to access the ghost backend server directly via IP address. What do I need to change in the configuration to access the ghost installation via domain AND internal ip range (10.10.0.0/32)?
The ghost installation has been configured with the https domain and here is the nginx config only changed in the proxy_set_header X-forwarded-proto = https:
server {
listen 80;
listen [::]:80;
server_name domain.com;
root /var/www/macntech/system/nginx-root; # Used for acme.sh SSL verification (https://acme.sh)
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
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;
}
client_max_body_size 50m;
}
Thanks!
Jo