Do not load website from public_html

Hello, this morning I was checking mail, browsing a website and everything was working fine till suddenly I got a message
“Your new web server is ready to use.”

This server was running fine for about a 6 month, till today. Was there any update hestia do it automatically?

Server info:
v-list-web-domain user donain.lt
DOMAIN: domain.lt
ALIAS: www.domain.lt
IP: .135..104
DOCUMENT_ROOT: /home/user/web/domain.lt/public_html/
SSL: yes / same
LETSENCRYPT: yes
SSL_FORCE: yes
SSL_HSTS: no
TEMPLATE: wordpress
FTP_USER: user_ftp
DISK: 585
BW: 247
SUSPENDED: no
TIME: 18:21:18
DATE: 2021-04-29

10.135.81.104 255.0.0.0 no unset shared 0 2021-04-29
.135..104 255.255.255.255 no sub.domain.lt shared 4 2021-04-29

Domain, ip, template, root dir seams to be ok.
For php using Backend Template - PHP-7_4

Any suggestions what could went wrong without any reasons?

1.4.13 has been released and it reload all config files

Did you made any changes to your config files

Please share OS and the related version aswell.

cat /etc/os-release
NAME=“Ubuntu”
VERSION=“20.04.3 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=“Ubuntu 20.04.3 LTS”
VERSION_ID=“20.04”
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Hestia Control Panel:
v1.4.13

nginx -v
nginx version: nginx/1.21.3

nano /var/log/nginx/error.log
shows no error today.

I didn’t make any changes to config files, always was using wordpress template provided by hestia cp for nginx, And all updates went fine before from cronjobs.

Only that website is not working or any other?

Dit you try restarting nginx?

There is total 3 domains and all of them returns same message. 2 domains on one user, 1 domain on a separate user account.
webmail subdomain do the same.

Nginx restarts without any error.

Is there a way to roll back to version v1.4.12?

No, Also we haven’t changed any thing regarding web…

What happens when you rebuild the user

v-rebuild-web-domains user

Nothing happened. Did to both users. Clean finish without any message.

At the moment I removed ssl not to mess with ssl conf too.
From back up: /home/user/conf/web/domain.lt/nginx.conf looks identical as the one on server.
Same file at /etc/nginx/conf.d/domains/domain.lt.conf

root /home/user/web/domain.lt/public_html;

what else can be that nginx started to read from a wrong root?

How many different websites do you have. Have them all issues or only a few?

Indicates the config for the domain does not exists…

I got 3 website on this server.
All of them suddenly gave me same landing page today.

http://ip/phpmyadmin 404 error
http://domain.lt/phpmyadmin 404 error

nginx.conf

user  nginx;
worker_processes  auto;

error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}

it include /etc/nginx/conf.d/*.conf;
What other conf files you need to see from conf.d?

You also replaced then nginx during the update when nginx also updated

Remove nginx.conf and use:

That’s it thanks…

But that I didn’t made any changes to nginx.conf file.

After update it will be change and I could get same problem? If yes where is the nginx.conf file location that westa use to overwrite?

The only reason nginx.conf will be overwritten, is during the upgrade over apt-get upgrade - hestia doesnt touch the nginx.conf file.

Hmm strange. After I got a message “Your new web server is ready to use.” I did login to ssh and used commands.

apt-get update
apt-get upgrade

next time will know :slight_smile: thanks for support. You guys are best :slight_smile:

my i know… you do this on root or on admin hestia ?

upgrading the system? usualy root, can be done aswell on admin but you need to run sudo infront.


my i know setting in here…??

Replace /etc/nginx/nginx.conf with https://github.com/hestiacp/hestiacp/blob/main/install/deb/nginx/nginx.conf

then systemctl restart nginx

But u need to get someone which help you out or switch to a shared webhosting, it sounds like a big lack of strongly needed knowledge.