Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: emad on December 15, 2023, 02:05:23 PM

Title: 400 Bad Request
Post by: emad on December 15, 2023, 02:05:23 PM
How do I solve this problem? Please someone help me
http://emad-host.online/

https://a.top4top.io/p_29050b2my1.png
Title: Re: 400 Bad Request
Post by: overseer on December 15, 2023, 08:24:38 PM
Going to need more info -- error logs especially. Are you on Apache or Nginx?
Title: Re: 400 Bad Request
Post by: rcschaff on December 15, 2023, 10:09:47 PM
https://prnt.sc/BmiTOAKMWv7F

Your router is intercepting the request, not CWP.  Therefor throwing the 400 error as I'm sure your router is set to only allow access from the local NAT
Title: Re: 400 Bad Request
Post by: emad on December 16, 2023, 02:47:25 AM
How do I solve this problem, please let me know
Title: Re: 400 Bad Request
Post by: rcschaff on December 16, 2023, 02:50:37 AM
You need your router to forward the ports to the server.  Are you by chance using NAT?
Title: Re: 400 Bad Request
Post by: emad on December 16, 2023, 02:59:03 AM
Can you tell me the steps I should do, please help
Title: Re: 400 Bad Request
Post by: rcschaff on December 16, 2023, 03:13:40 AM
https://www.hyperoptic.com/wp-content/uploads/2019/08/Port-forwarding-and-DMZ-for-ZTE-ZXHN-H298A-v1.3.pdf


This is beyond the scope of the forum.  You will need to forward all of the ports, or set the computer behind the NAT as a DMZ server.
Title: Re: 400 Bad Request
Post by: emad on December 17, 2023, 06:25:45 PM
Everything worked successfully but it still has the same problem
Everything was done correctly in the redirection, but it does not work, why?
http://emad-host.online/
Title: Re: 400 Bad Request
Post by: rcschaff on December 17, 2023, 07:48:48 PM
Turn off remote administration for your router.
Title: Re: 400 Bad Request
Post by: emad on December 17, 2023, 07:52:16 PM
How do I do these steps?
Will I solve the problem after that?
Title: Re: 400 Bad Request
Post by: rcschaff on December 17, 2023, 09:23:44 PM
I can't guarantee anything.  But this is why cwp is really meant to be on a server with a public IP, and not hosted behind a nat
Title: Re: 400 Bad Request
Post by: emad on December 17, 2023, 09:27:27 PM
Please make sure the site is working

http://emad-host.online/
Title: Re: 400 Bad Request
Post by: rcschaff on December 17, 2023, 09:42:54 PM
I get the cwp page, so yes
Title: Re: 400 Bad Request
Post by: emad on December 17, 2023, 10:04:57 PM
Thank you for your help. Is everything resolved?
Title: Re: 400 Bad Request
Post by: emad on December 17, 2023, 10:44:07 PM
Why did I not upload a script or install WordPress? It does not appear on a site that only opens a CWP page

http://emad-host.online/
Title: Re: 400 Bad Request
Post by: rcschaff on December 18, 2023, 03:54:49 AM
You probably need to enable the NAT option in CWP for it to set everything to the local IP and use the global IP.  I've never messed with a NAT setup, so I'm not really sure how that all works.
Title: Re: 400 Bad Request
Post by: emad on December 18, 2023, 12:41:09 PM
???
Title: Re: 400 Bad Request
Post by: emad on December 18, 2023, 12:54:20 PM
Why does the website not work, even WordPress?

I uploaded this script and installed it. Wordpress does not work, why?

Please help

http://stsaa.emad-host.online/wp-admin/
Title: Re: 400 Bad Request
Post by: emad on December 18, 2023, 01:02:20 PM
I upload any script and nothing works
Title: Re: 400 Bad Request
Post by: Starburst on December 18, 2023, 04:51:57 PM
Check the permissions.
Title: Re: 400 Bad Request
Post by: emad on December 18, 2023, 05:50:15 PM
How do I solve this problem or take steps please?
Title: Re: 400 Bad Request
Post by: Starburst on December 18, 2023, 09:51:26 PM
With CWP you don't need to upload the WordPress script.

It's built into the panel, and also can be installed via Softaculous for end users.
Title: Re: 400 Bad Request
Post by: emad on December 19, 2023, 02:06:50 AM
I have a problem with the site not working on anything. Please check
http://emad-host.online/
Title: Re: 400 Bad Request
Post by: rcschaff on December 19, 2023, 02:30:33 AM
if emad-host.online is your server name, you most likely need to put the files for the site under /usr/local/apache/htdocs/

If it's a user account, they should go under /home/(user)/public_html

I'm not sure what help we can be if we don't know how you have it configured.   Once again, you never answered if this is a computer behind a NAT router or not.  I'm guessing yes, but can't confirm.
Title: Re: 400 Bad Request
Post by: emad on December 19, 2023, 02:35:35 PM
How to solve this problem please step by step

rDNS/PTR = FAILED, check with your hosting provider! FAILED
Title: Re: 400 Bad Request
Post by: Starburst on December 19, 2023, 05:44:15 PM
How to solve this problem please step by step

rDNS/PTR = FAILED, check with your hosting provider! FAILED

As @rcschaff mentioned, More information is needed.

Is this a home network using NAT or public network?
What distro are you trying to install CWP onto?
VPS or Dedicated?

Not trying to be mean, we all started somewhere.
It also sounds like you might be in over your head, and actually need more of a hosting account or Managed server.
Title: Re: 400 Bad Request
Post by: emad on December 20, 2023, 11:18:46 AM
Is this a home network using NAT or public network?
What distro are you trying to install CWP onto

Yes, how do I fix this problem?
Title: Re: 400 Bad Request
Post by: Starburst on December 20, 2023, 09:53:02 PM
Is this a home network using NAT or public network?
What distro are you trying to install CWP onto

Yes, how do I fix this problem?

Can't answer a problem, without knowing what's going on and how you have Your network setup.

At this point, I would recommend you hire an onsite sys admin that can help you do whatever you are trying to do.

Because if you don't know the difference between NAT & Public, and it's Your setup, you are in way over your head.