Require host : Only permit requests from.Require all granted: Allow all requests.In short, this implements the following rules: This module exposes several new directives. Configure Directives in the Apache Configuration FileĪpache 2.4 makes use of a new configuration module named mod_authz_host. Once you've changed all file permissions as required, restart the Apache server to let your changes take effect.ģ. So next time someone tries to access this file, they won't see the dreaded "you don't have permission to access this resource error." sudo chmod 644 / var/www/html/textbook.php For example, the following command will change the permission of textbook.php on the web root and make it publicly accessible. Plus, you can also change file permissions individually. The below command uses the chmod utility to set the directory permissions to 755: sudo find /var/www/html - type d - exec chmod 755 \ holds the file paths returned by the find command, and the semicolon ( ) marks the end of the iteration. To solve errors like forbidden: you don't have permission to access this resource on any server, fix your webroot directory permissions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |