Welcome! Log In Create A New Profile

Advanced

Hostname only is resolved for about 20 minutes

Posted by petero 
Hostname only is resolved for about 20 minutes
August 25, 2021 03:33AM
Hi,
Have nginx running with SSL and is fine with the local IP of the server but will only resolve its hostname for a limited period. If I reboot it connects again.
Also, the default page for server is showing an Apache2 page although Apache is not running.There was a previous install of Apache however.
Help appreciated.
Re: Hostname only is resolved for about 20 minutes
August 25, 2021 03:50AM
sites-available block is: (I put hostname in inverted commas as I believe server is a reserved name)
#
# Note: This file must be loaded before other virtual host config files,
#
# HTTPS
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name _ "server.thekingsley.co.uk";

root /var/www/html;
index index.php index.html;


Help appreciated.

Status

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 Wed 2021-08-25 00:02:56 UTC; 7h ago
Docs: man:nginx(8)
Process: 631 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, st>
Process: 884 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SU>
Main PID: 885 (nginx)
Tasks: 2 (limit: 2225)
Memory: 3.6M
CGroup: /system.slice/nginx.service
├─885 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─886 nginx: worker process

Aug 25 00:02:49 server.thekingsley.co.uk systemd[1]: Starting A high performance web server and a rev>
Aug 25 00:02:56 server.thekingsley.co.uk systemd[1]: Started A high performance web server and a reve>
Re: Hostname only is resolved for about 20 minutes
August 27, 2021 03:34AM
Further to this-
The hostname is resolved from the outside, but not locally.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready