403 Forbidden Error running project in Nginx

Source: Internet
Author: User
Tags chmod 403 forbidden error nginx server phpmyadmin
Yesterday set up Nginx front-end agent Apache, today access phpMyAdmin 403 Forbidden Error 1: The reason for this error may be that the owner of the directory does not write permission, at this time, the chmod 777 directory name can be completely open permissions, if the problem is resolved, Is slowly narrowing the access rights.
2: I immediately chmod-r 777/home/www/phpmyadmin, and then to perform http://xx.xx.xx.136/phpmyadmin, or 403 Forbidden error. Directory permissions have been completely developed, how still do not have permission ah, in a foreign post found a solution, the original is phpMyAdmin folder under the default to perform index.php, while in/usr/local/etc/nginx/ Index.php is not performed by default in nginx.conf, the default section is as follows:

location/phpmyadmin/{
alias/home/www/phpmyadmin/;
}

Just change it to the following:

location/phpmyadmin/{
alias/home/www/phpmyadmin/;
Index index.php;
}

Of course, reboot the Nginx server.
Then access to the page is normal, there will be no 403 Forbidden error. Everything's fine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.