# Access via internal IP and Domain

**URL:** <https://forum.ghost.org/t/access-via-internal-ip-and-domain/27368>\
**Category:** Self-hosting\
**Created:** [December 16, 2021, 10:13am UTC](https://forum.ghost.org/t/access-via-internal-ip-and-domain/27368 "2021-12-16T10:13:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joo](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/joo/32/16051_2.png) [@Joo](https://forum.ghost.org/u/Joo)\
**Post date:** [December 16, 2021, 10:13am UTC](https://forum.ghost.org/t/access-via-internal-ip-and-domain/27368/1 "2021-12-16T10:13:34Z")

</div>

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:

```auto
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
