Server unable to read htaccess file, denying access to be safe

前端 未结 14 2878
情深已故
情深已故 2020-12-12 20:15

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.gaurabdahal.com/recipefinder it shows the following error:

14条回答
  •  悲哀的现实
    2020-12-12 20:40

    Important points in my experience:

    • every resource accessed by the server must be in an executable and readable directory, hence the xx5 in every chmod in other answers.
    • most of the time the webserver (apache in my case) is running neither as the user nor in the group that owns the directory, so again xx5 or chmod o+rx is necessary.

    But the greater conclusion I reached is start from little to more.

    For example, if http://myserver.com/sites/all/resources/assets/css/bootstrap.css yields a 403 error, see if http://myserver.com/ works, then sites, then sites/all, then sites/all/resources, and so on.

    It will help if your server has directory indexes enable:

    • In Apache: Options +Indexes

    This instruction might also be in the .htaccess of your webserver public_html folder.

提交回复
热议问题