# Website is not working after installation (maybe NGINX problem)

**URL:** <https://forum.ghost.org/t/website-is-not-working-after-installation-maybe-nginx-problem/53728>\
**Category:** Self-hosting\
**Created:** [December 31, 2024, 2:50pm UTC](https://forum.ghost.org/t/website-is-not-working-after-installation-maybe-nginx-problem/53728 "2024-12-31T14:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Real\_Estate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/real_estate/32/34045_2.png) [@Real\_Estate](https://forum.ghost.org/u/Real_Estate)\
**Post date:** [December 31, 2024, 2:50pm UTC](https://forum.ghost.org/t/website-is-not-working-after-installation-maybe-nginx-problem/53728/1 "2024-12-31T14:50:14Z")

</div>

Hi my website is not working (404 error) after installation. I think it is something related to nginx.

ghost doctor:

✔ Checking system Node.js version - found v20.18.1  
✔ Checking logged in user  
✔ Ensuring user is not logged in as ghost user  
✔ Checking if logged in user is directory owner  
✔ Checking current folder permissions  
✔ Checking system compatibility  
✔ Checking for a MySQL installation

- sudo systemctl is-active ghost\_www-elektrojazdenie-sk  
Instance is currently running  
ℹ Validating config [skipped]  
✔ Checking folder permissions  
✔ Checking file permissions  
✔ Checking content folder ownership  
✔ Checking memory availability  
✔ Checking binary dependencies  
✔ Checking free space  
✔ Checking systemd unit file  
✔ Checking systemd node version - found v20.18.1

Ghost setup ssl:

- sudo /etc/letsencrypt/acme.sh --upgrade --home /etc/letsencrypt
- sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain www.elektrojazdenie.sk --webroot /var/www/elektrojazdenie/system/nginx-root --reloadcmd “nginx -s reload” --accountemail info@elektrojazdenie.sk --keylength 2048  
✖ Setting up SSL  
One or more errors occurred.

1. ProcessError

Message: Command failed: /bin/sh -c sudo -S -p ‘#node-sudo-passwd#’ /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain www.elektrojazdenie.sk --webroot /var/www/elektrojazdenie/system/nginx-root --reloadcmd “nginx -s reload” --accountemail info@elektrojazdenie.sk --keylength 2048  
[Tue Dec 31 14:42:09 UTC 2024] www.elektrojazdenie.sk: Invalid status. Verification error details: 141.144.236.165: Fetching [http://www.elektrojazdenie.sk/.well-known/acme-challenge/PT70PMI-L8aBpclh0GKcFinS3KudUV0JaS5P1nNZ1Q4:](http://www.elektrojazdenie.sk/.well-known/acme-challenge/PT70PMI-L8aBpclh0GKcFinS3KudUV0JaS5P1nNZ1Q4:) Error getting validation data  
[Tue Dec 31 14:42:09 UTC 2024] Please add ‘–debug’ or ‘–log’ to see more information.  
[Tue Dec 31 14:42:09 UTC 2024] See: [How to debug acme.sh · acmesh-official/acme.sh Wiki · GitHub](https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh)

[Tue Dec 31 14:42:04 UTC 2024] Using CA: [https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory)  
[Tue Dec 31 14:42:04 UTC 2024] Single domain=‘www.elektrojazdenie.sk’  
[Tue Dec 31 14:42:05 UTC 2024] Getting webroot for domain=‘www.elektrojazdenie.sk’  
[Tue Dec 31 14:42:05 UTC 2024] Verifying: www.elektrojazdenie.sk  
[Tue Dec 31 14:42:06 UTC 2024] Pending. The CA is processing your order, please wait. (1/30)

Exit code: 1

Debug Information:  
OS: Ubuntu, v22.04.5 LTS  
Node Version: v20.18.1  
Ghost Version: 5.105.0  
Ghost-CLI Version: 1.26.1  
Environment: production  
Command: ‘ghost setup ssl’

/etc/nginx/sites-available - file www.elektrojazdenie.sk.conf:

map $status $header\_content\_type\_options {  
204 “”;  
default “nosniff”;  
}

server {  
listen 80;  
listen [::]:80;

```
server_name www.elektrojazdenie.sk;
root /var/www/elektrojazdenie/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 $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://127.0.0.1:2368;

    add_header X-Content-Type-Options $header_content_type_options;
}

location ~ /.well-known {
    allow all;
}

client_max_body_size 50m;

```

}

NGINX status:  
sudo systemctl status nginx  
● nginx.service - A high performance web server and a reverse proxy server  
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)  
Active: active (running) since Tue 2024-12-31 14:02:24 UTC; 46min ago  
Docs: man:nginx(8)  
Process: 731 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master\_process on; (code=exited, status=0/SUCCESS)  
Process: 829 ExecStart=/usr/sbin/nginx -g daemon on; master\_process on; (code=exited, status=0/SUCCESS)  
Main PID: 840 (nginx)  
Tasks: 3 (limit: 14232)  
Memory: 15.2M  
CPU: 74ms  
CGroup: /system.slice/nginx.service  
├─ 840 “nginx: master process /usr/sbin/nginx -g daemon on; master\_process on;”  
├─4328 “nginx: worker process” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” “” "\> └─4329 “nginx: worker process” “” “” “” “” “” “” “” “” “” “”

GHOST LS\>

Name │ Location │ Version │ Status │ URL │ Port │ Process Manager │  
├────────────────────────┼──────────────────────────┼─────────┼──────────────────────┼────────────────────────────────┼──────┼─────────────────┤  
│ www-elektrojazdenie-sk │ /var/www/elektrojazdenie │ 5.105.0 │ running (production) │ [https://www.elektrojazdenie.sk](https://www.elektrojazdenie.sk) │ 2368 │ systemd │  
└────────────────────────┴──────────────────────────┴─────────┴──────────────────────┴────────────────────────────────┴──────┴─────────────────┘

Many thanks for help.

BR,

---

<div class="post-metadata">

**Author:** ![joe-blocher](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/joe-blocher/32/27872_2.png) [@joe-blocher](https://forum.ghost.org/u/joe-blocher)\
**Post date:** [January 2, 2025, 1:36am UTC](https://forum.ghost.org/t/website-is-not-working-after-installation-maybe-nginx-problem/53728/2 "2025-01-02T01:36:00Z")

</div>

Try install SSL-Certificate manually:

> **[How to issue a cert](https://github.com/acmesh-official/acme.sh/wiki/How-to-issue-a-cert)**
>
> A pure Unix shell script implementing ACME client protocol - acmesh-official/acme.sh

```auto
acme.sh --issue -d www.elektrojazdenie.sk --nginx

```

Or use [Certbot](https://certbot.eff.org/)

---

<div class="post-metadata">

**Author:** ![Real\_Estate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/real_estate/32/34045_2.png) [@Real\_Estate](https://forum.ghost.org/u/Real_Estate)\
**Post date:** [January 2, 2025, 4:24pm UTC](https://forum.ghost.org/t/website-is-not-working-after-installation-maybe-nginx-problem/53728/3 "2025-01-02T16:24:47Z")

</div>

Thanks, but is it not working.

BUT, I already found solution as I found that all Oracle images have IPTABLES enabled with some rules already in place.

I allowed port 80 in iptables and it is working.
