I have an Ubuntu 20.04 Focal server running with ufw firewall, nginx running with php8.0-fpm
, and all needed packages with MySQL server.
It is all accessible from outside internal network using dynamic domain name.
When I point my domain to it by either the IP address or by the dynamic domain name, I'm getting ERR_CONNECTION_REFUSED
; but from the dynamic domain name all loads happily.
I have check access logs and the domain is showing as connecting.
No error logs with nginx. PHP not logging errors eventhough I have it enabled too.
When I first setup nginx I could access the basic HTML page and phpinfo.php
located in /var/www/html
.
I have now pointed my web server to e107 within /var/www/html/e107
When i set e107 up, I ran the install.php
script and could access it from both domain and dynamic domain. Once setup is completed, it then became inaccessible to the domain but works as it should on the dynamic domain name and via public IP.
If I switch the root directory back to /var/www/html
and restart nginx, the basic index.html
works fine and so does phpinfo.php
.
I have spent hours scrolling through forums for a solution and not found any.
I have a feeling that it's PHP related or e107 CMS stopping the access from the domain but I don't know where to start as i haven't been able to find any solutions to similar issues on forums.
Any help would be greatly appreciated.