Control Web Panel

WebPanel => Apache => Nginx => Topic started by: klaud on December 17, 2019, 04:38:45 AM

Title: 404 error on new install CWP
Post by: klaud on December 17, 2019, 04:38:45 AM
i just successfully install CWP on aliyun

now i try to use duplicator to migrate my wp sites to CWP

i select nginx only

after i upload archive and installer.php sites

i cant seems to access to my domain http://domain.com/installer.php got 404 error, i try domain.com/test.html/.txt/.php all got 404 error

whats wrong? could somebody help me?
Title: Re: 404 error on new install CWP
Post by: Igor S. on December 17, 2019, 11:13:33 AM
nginx does not understand .htaccess. Use Apache+nginx or Apache.
Title: 404 error
Post by: asenges400 on October 06, 2020, 03:44:04 PM
I am having this problem after moving files to remote host. I replaced public_html with a symlink to my new folder and gove 775 permission and changed the group to nobody nginx user and set symlink to off in my nginx.conf and vhost conf. But I am still getting the 404 error. What's missing?
Title: Re: 404 error on new install CWP
Post by: studio4host on October 06, 2020, 05:02:26 PM
you need to check apache logs
http://wiki.centos-webpanel.com/service-log-paths
Title: Re: 404 error on new install CWP
Post by: asenges400 on October 06, 2020, 06:26:22 PM
Thanks for your reply but what am I looking for specifically. I already checked the logs but there are many entries and many files in both

/usr/local/apache/logs (main logs)
/usr/local/apache/domlogs (per domain logs are in the same file for apache&nginx)

But I could not realized what the problem is. I thought it was something about file permission or ownership but I already attended this so I suppose it is something about any rule on nginx server I am not aware of.

I am using both Apache and Nginx as a Reverse Proxy and Nginx is not following the Symlink properly.

HTTP: Nginx (80) --> Apache (8181)
HTTPS: Nginx (443) --> Apache (8181)

404 Not Found
nginx/1.18.0
Title: Re: 404 error on new install CWP
Post by: Igor S. on October 18, 2020, 06:42:24 AM
FollowSymLinks construction disabled by default for security reasons.