There is another way to solve this problem. Let us say you want to access directory "subphp" which exist at /var/www/html/subphp
, and you want to access it using 127.0.0.1/subphp
and you receive error like this:
You don't have permission to access /subphp/ on this server.
Then change the directory permissions from "None" to "access files". A command-line user can use the chmod command to change the permission.