My Ubuntu 16.04 system is running Apache 2.4.18. Recently, I created a directory called "javascript" within /var/www/html and added an HTML file to it. However, when attempting to access the file via localhost/javascript/, I received the following error message:
"You don't have permission to access /javascript/ on this server."
Interestingly, when I placed the same HTML file in a different directory named "learn_js", no errors were encountered. Can anyone explain why this discrepancy occurred?