Author Topic: My CWP websites are not loading after i changed my webservers to Ningx + Apache  (Read 431 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
My CWP websites are not loading after I changed my webservers to Ningx + Apache
Then I changed back to Apache nothing changes CWP user and CWP Admin in working i can access that but when open on of my website in browser Google Chrome says connection refused
on some users it says forbidden you dont have access
when i check DNS it goes to IP but my server refused the request


What i Have tried
1. Fix permissons
2. Rebuld Vhosts
3. Restart DNS
4. SSL Rebuid
5. tUrn Off Firewall
6. Disable Mod
Etc
But no Luck Cn you please help me with this quickly

Offline
***
Check files:

/etc/nginx/conf.d/vhosts/DOMAIN.COM.conf
/etc/nginx/conf.d/vhosts/DOMAIN.COM.ssl.conf

and make sure there is no:

Code: [Select]
  if ($http_referer = "") {
  return 403;
    }

Offline
*****
Not to rub salt on an open wound, but always take a full image and back up all configs before attempting a major change like this (changing web servers and reverse proxy settings qualifies) so you can quickly revert if things don't pan out. Test on a local mirror first before attempting it on a production server. Also consider scheduling it in off-hours (which I suppose New Year's Day qualifies...) but also best when CWP support is active and the forums are active in case you need help.

Offline
*
When i revert back to Apache nothing show up in Website when i chage the servers to ningx+apache ttest page shows up on all websites is there a probleem with htdocs i think they are blocked i cant acces the Test page also i want to use apache only

Offline
***
Did you check if Apache and/or Nginx work ?

Also, please provide more details when you ask to help because the descriptions like "my website doesn't work" , "I get nothing", etc don't shed light on the problem. The browser always shows something and the results like "blank white page", "error message", etc help to understand where the problem could be.
« Last Edit: January 02, 2025, 11:44:05 AM by cyberspace »

Offline
*
Here are all the screenshots
Apache is running but the connection refused

https://ibb.co/88ZhN3K
https://ibb.co/WpTc2KK
https://ibb.co/1LKGY00
My httpd.conf
https://codepen.io/sohailfarooq356/pen/raBYBwb

Offline
***
The screenshots provided by you show the error 404. It means "connection accepted" not "refused" (connection refused and the error 404 are totally different things). Additionally it tells something (nginx or apache) listens the port 80.

I think you checked the wrong apache config file. The Apache config file used by CWP is:

/usr/local/apache/conf/httpd.conf

Additionally check if you have some files in:

/etc/nginx/conf.d/vhosts/


Using:

Code: [Select]
netstat -nlp| egrep "nginx|httpd"

check what services exactly use the webports (80,443,8181,8443).

Show results.

Additionally, tell us what your webconfing is now.
« Last Edit: January 02, 2025, 02:20:04 PM by cyberspace »

Offline
*
There are some vhosts in Ningx vhost folder as i am not using Ningx
I am Using apache only
I foud out that my 443 port connection refusedall web serving on 80 port when i removes the https and add http the web shows me Test page when i add https it says connection refued be it cant find the files
i thing thre is problem aslo with that screenshot attaced

Httpd.conf https://codepen.io/sohailfarooq356/pen/raBYBwb

 https://ibb.co/wQJPztk
https://ibb.co/NxtR716
https://ibb.co/VWVXpP0

Offline
***
The main apache conf file looks good, except the line:
#Include /usr/local/apache/conf.d/*.conf
(last line of the file)
Uncomment it, stop/kill Apache and then try to restart it manually.

If your sites are inaccessible still then make sure the ports 80, 443 are used by Apache only:
Code: [Select]
netstat -nlp| egrep "nginx|httpd"If the ports 80, 443 remain unused then log into CWP admin and double check CWP is configured to use Apache only (WebServer config --> Select WebServers), switch to "Apache Only" if there is something else, rebuild vHosts and restart Apache.

Offline
***
Here are all the screenshots
Apache is running but the connection refused

https://ibb.co/88ZhN3K
https://ibb.co/WpTc2KK
https://ibb.co/1LKGY00
My httpd.conf
https://codepen.io/sohailfarooq356/pen/raBYBwb

Are you using CWPPro..?!
Your domain is not resolving here, and is not registered: thcwebiner.com
As a consequence, your domain does not resolve here, nor panel.thcwebiner.com
Are using really ns1 and ns2.centos-webpanel.com as you nameservers?

Regards,
Netino

Offline
*
Some of my domains are not here they are somewhere else please see
https://thcawholesale.me/
https://dirtbikes-officials.com/
Yes i am using centos DNS
my website loads on http but my files are in https my 443 says connection refused
and 80 port shows test page

Offline
***
Please read my previous post if you are interested to solve the problem.

Offline
*
The main apache conf file looks good, except the line:
#Include /usr/local/apache/conf.d/*.conf
(last line of the file)
Uncomment it, stop/kill Apache and then try to restart it manually.

If your sites are inaccessible still then make sure the ports 80, 443 are used by Apache only:
Code: [Select]
netstat -nlp| egrep "nginx|httpd"If the ports 80, 443 remain unused then log into CWP admin and double check CWP is configured to use Apache only (WebServer config --> Select WebServers), switch to "Apache Only" if there is something else, rebuild vHosts and restart Apache.
I did everything nothing works my webservers are Apache only and i hae rebuilded the vhost nothin works

Offline
***
Did you uncomment the line
#Include /usr/local/apache/conf.d/*.conf
by removing "#" at beginning ?

Offline
*
Jan  3 15:26:15 panel systemd: Starting Web server Apache...
Jan  3 15:26:15 panel apachectl: httpd: Syntax error on line 513 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/rpaf.conf: Cannot load modules/mod_rpaf.so into server: /usr/local/apache/modules/mod_rpaf.so: cannot open shared object file: No such file or directory
Jan  3 15:26:15 panel systemd: httpd.service: control process exited, code=exited status=1
Jan  3 15:26:15 panel systemd: Failed to start Web server Apache.
Jan  3 15:26:15 panel systemd: Unit httpd.service entered failed state.
Jan  3 15:26:15 panel systemd: httpd.service failed.

Error