Access via internal IP and Domain

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 (

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 (

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;

    root /var/www/macntech/system/nginx-root; # Used for SSL verification (

    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;


    location ~ /.well-known {
        allow all;

    client_max_body_size 50m;