Index. Html Not Loading by Default

Index. Html Not Loading by Default

i have Ubuntu 18.04 and have Apache 2.4.29

i have

<VirtualHost *:80>
  ServerName blah.com
  DocumentRoot /var/www/html
  DirectoryIndex index.html index.php
  ...
  <Directory /var/www/html>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

in /var/www/html/test i have index.html

but when I go to it shows me a 403 Forbidden error. I can however go to and it loads the page.

Any ideas where I can look to see what option i'm missing? thanks

2

1 Answer

sudo chown -R www-data:www-data /var/www/html 

try this code

403 Forbidden  its mean you don't have permission 

maybe its help to you

check you .htaccess as well

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.