Author Topic: Nginx - one site will only go to default Server Test Page  (Read 2683 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx - one site will only go to default Server Test Page
« on: August 07, 2022, 07:32:02 AM »

Hi all,

Have been successfully running CWP for several years without issues.  I have recently tried to put a domain onto the server that has previously been there, but was deleted a while back.

I can create the account ok, the /home/youngvet directory is created, up to and including /home/youngvet/public_html/index.html etc

However when I try to access the site, I get the default page sitting in /usr/local/apache/htdocs/

I've changed the content of the index.html file in both locations and the server is definitely serving up the /usr/local/apache/htdocs/ page.

If I add an account which has never previously been on the server, it works perfectly.

I've tried all the trouble shooting that I can think of - different browsers / computers / cleared cache / restarted nginx / dns / server to no avail.

The account .conf file looks fine, the root id pointing to "root /home/youngvet/public_html;"

I can only think that there is a 'left over' gremlin in the system from when I last had it installed.  Any suggestions ?

Thanks for any assistance.

Pete

Offline
***
Re: Nginx - one site will only go to default Server Test Page
« Reply #1 on: August 07, 2022, 10:32:08 AM »
cwp pro or free ?

try to rebuild webserver

Offline
*
Re: Nginx - one site will only go to default Server Test Page
« Reply #2 on: August 07, 2022, 10:38:22 AM »

I'm running Pro. I've rebuilt the web server a couple of times, no change.

Pete

Offline
***
Re: Nginx - one site will only go to default Server Test Page
« Reply #3 on: August 09, 2022, 06:11:44 AM »
i think you use cloudflare ?

how if you use vpn ?
or just try online web snapshot or gtmatrik to see what they (the server) "see" at your domain
because i dont know your site address so i can try to see the ns and other thing.

double check the account info.. is your domain added correctly ?
check the zone names IN A at your cwp server
« Last Edit: August 09, 2022, 06:14:21 AM by PakPos »

Offline
*
Re: Nginx - one site will only go to default Server Test Page
« Reply #4 on: November 26, 2024, 07:25:23 PM »
Hello!

I have this problem too, after changing Apache to Nginx via CWP root, all my domains stop working, they land on the test page of thecentos Web panel.
I've already done the Vhosts Rebuld but it doesn't work, any ideas?

In /etc/nginx/conf.d/vhosts my domains look like this:
mydomain.com.conf.disabled

I have already manually changed it to:
mydomain.com.conf
but it didn't solve it.
Thanks!
Hallbook Network

Offline
**
Re: Nginx - one site will only go to default Server Test Page
« Reply #5 on: Today at 07:51:45 AM »
Open the file:

/etc/nginx/nginx.conf

and make sure it contains the line at the end:

Code: [Select]
include /etc/nginx/conf.d/*.conf;
if the line is there then check content of the folder:

/etc/nginx/conf.d/

It should contain the file vhosts.conf. Open the file and check if it contains:

Code: [Select]
include /etc/nginx/conf.d/vhosts/*.conf;
Then check the folder:

/etc/nginx/conf.d/vhosts/

It should contain two files named like domain.com.conf, domain.com.ssl.conf for each domain name.

Also, if you use nginx only, double check there are no some frozen apache/httpd processes.
« Last Edit: Today at 08:12:20 AM by cyberspace »