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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like