Switching to Nginx_Apache makes all sites unloadable

codingmachine

Verified User
Joined
Dec 21, 2022
Messages
14
Hello!
I am pretty new to using DirectAdmin so please provide specific details as to where the log files I need to show are located would be greatly appreciated.

I am currently running DirectAdmin v.1.645, with custom build 2.0.0. I am using Nginx only setup currently.

I am following the guide https://docs.directadmin.com/webservices/nginx_apache/general.html to enable nginx_apache, and once the process is complete HTTPd and Nginx are both running fine service-wise. But all my sites are unreachable. I have attempted many times to switch back to Nginx, then back to Nginx-apache with no luck.

Any help would be greatly appreciated.
Thanks
Felix
 
Hello Felix,

What is your OS and what errors do you have in a browser when visiting sites under Nginx+Apache mode?

Logs can be found:

- for nginx: /var/log/nginx/domains/
- for apache: /var/log/httpd/domains/
 
Hello Alex,

I am running Ubuntu 22.04.

After switching to the Nginx_apache build, I attempt to load my website, and no logs are generated under httpd or nginx under the sites .log or .error.log

One note, not sure if it would have an effect, but I am running Cloudflare as well on the domain hosted.

Thanks
 
What errors do you have in a browser when visiting sites? If you are currently under nginx+apache you might send me your IP or domain privately. I will check how it opens in a browser.
 
Hi, I am currently getting a 524 Timeout error. You can visit https://defiance.network to view what I am currently seeing.

Another thing I've noticed, when visiting the webserver IP port 8080 I get the message of 'is functioning normally'
 
My guess you have a firewall blocking connections to TCP 8080 and 8081 ports. You might either configure existing firewall or switch to CSF/LFD:

Code:
cd ~
wget --no-check-certificate -O csf-bfm-install.sh https://raw.githubusercontent.com/poralix/directadmin-bfm-csf/master/install.sh
chmod 700 csf-bfm-install.sh
./csf-bfm-install.sh
cd -
 
Visiting the IP directly on port 80 is giving me a 502 Bad Gateway after loading for what seems over a minute.

My guess you have a firewall blocking connections to TCP 8080 and 8081 ports. You might either configure existing firewall or switch to CSF/LFD:

Code:
cd ~
wget --no-check-certificate -O csf-bfm-install.sh https://raw.githubusercontent.com/poralix/directadmin-bfm-csf/master/install.sh
chmod 700 csf-bfm-install.sh
./csf-bfm-install.sh
cd -

I do not have CSF/LSD enabled on this machine. so i don't think that could be the issue
 
I do not have CSF/LSD enabled on this machine. so i don't think that could be the issue

Yes, that's why I suggested to install it. Ubuntu has a default firewall: https://ubuntu.com/server/docs/security-firewall and it might be still running.

Meanwhile I have HTTP/503 error when accessing your site with cURL and a "A timeout occurred Error code 524" from CloudFlare when I try it in a browser.

Check your firewall. You will need to configure it or replace with CSF/LFD.
 
I can currently reach port 8080 and port 8081 from my browser. That would suggest that the firewall would not be the issue?
I will DM you my webservers IP aswell.
 
I failed to connect to 80, 443 port on your server when trying the IP. But I succeeded to connect to 8080 and 8081 ports. Your setup does not look to be a default one. Something is either blocking or filtering connections.

I would still start and investigation from learning firewall settings. I don't have other ideas. Probably somebody else with Ubuntu can help you more.
 
Hi,

Yes, I've switched back to an NGINX-only setup for the time being as I need my sites operational.
 
Back
Top