If you find yourself googling in order to make your new local server work online, you’ve come to the right place. Most Web Server packages today (WAMP, XAMPP or Uniform Server) are configured to work with the “old” Apache 2.2 version and have a major flaw. Since 2.4, Apache has dropped the directive “Allow” in favour of the new directive “Require”.
Therefore, in order to make your aliases work and also to put your Apache Server configuration online, you must edit the configuration file and make two changes:
1. For aliases, find and replace “Allow from all” with “Require all granted”.
1 2 3 4 5 6 | < Directory "[...]/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </ Directory > |
1 2 3 4 5 | < Directory "[...]/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require all granted </ Directory > |
2. To put server online, you must edit the httpd.conf and find the setting:
1 2 3 4 | < Directory "[...]/www/"> # [...] comments Require local </ Directory > |
and replace it with:
1 2 3 4 | < Directory "[...]/www/"> # [...] comments Require all granted </ Directory > |