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

前端 未结 14 2841
情深已故
情深已故 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:48

    As for Apache running on Ubuntu, the solution was to check error log, which showed that the error was related with folder and file permission.

    First, check Apache error log

    nano /var/log/apache2/error.log
    

    Then set folder permission to be executable

    sudo chmod 755 /var/www/html/
    

    Also set file permission to be readable

    sudo chmod 644 /var/www/html/.htaccess
    

提交回复
热议问题