![]() To fix the issue, add a default directory index.ġ. If the file or any similar files are not found, and directory index listings are disabled, the web server displays the ‘ 403 Forbidden’ error message. When a user visits a URL that requests a directory, the web server looks for a file in the given directory. ![]() For Ubuntu, use: sudo systemctl restart apache2įor Centos, use: sudo systemctl restart httpd Method 3: Adding a Default Directory Index Restart the Apache web server for the changes to take effect. Press Ctrl+X and then Y to save changes to the Apache configuration file.ĥ. If the final line in the section contains Require all denied, change it to Require all granted.Ĥ. If you are working with Centos, use: sudo systemctl restart httpdģ. ![]() If you are working with Ubuntu, use the following command to restart Apache: sudo systemctl restart apache2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |