I think also this one must be commented : # Prevent access to ./directories and files location ~ (?:^|/)\. { deny all; } To allow access to ./directories? Why do you think that needs to be commented out?