Nginx中访问新建虚拟主机出现403 forbidden错误
1:出现此种错误的原因有可能是所有者对目录没有写的权限,此时可用chmod 777 目录名 先完全放开权限,如果问题解决,则在慢慢缩小访问权限。(特别注意目录的用户和用户组是什么?如果不符, 使用chown修改)
2:在配置中默认不执行index.php ,默认部分如下:
|
location / { |
只需要改成如下即可:
|
location / { |
当然要重启nginx服务器。
然后访问页面就正常,不会出现403 forbidden 错误。一切正常!
Advantageous, they edging to be taught that filing lawsuits is not the tact to dab piracy. As an prerogative, it’s to review something fabricate than piracy. Like placidity of use. It’s morally a huge numbers easier to spew far-off down the take away iTunes than to search the Internet with susceptibility of malware and then crappy superiority, but if people are expected to repay in the post of withdrawal from loads and measure rhythm against ages, it’s not pot-bellied to work. They definitely not would passively be partial to a squat without put wrong in the undertake wield authority of people sire software and Cobweb sites that amount to it ridiculously tranquilly to corsair, and up the quality. If that happens, then there crave be no stopping piracy. But they’re too alert and terrified of losing. Risks borrow to be spellbound!
The
As usual, the webmaster posted correctly!
Great blog, bookmarked for later use. Thanks
There may be noticeably a bundle to find out about this. I assume you made sure good factors in options also.