Control Web Panel
WebPanel => Apache => Nginx => Topic started 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?
-
nginx does not understand .htaccess. Use Apache+nginx or Apache.
-
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?
-
you need to check apache logs
http://wiki.centos-webpanel.com/service-log-paths
-
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
-
FollowSymLinks construction disabled by default for security reasons.