The author has just re-installed the system, win8.1 back to Win7, feel win8 or to touch screen pc design bar, not win7 with the handy AH. As a program ape, re-install the system after the first priority is to configure, build a variety of development environment, our bitter force you do not understand, hey ...
Then, Wamp not inventory, then the last officer net load down, installed when also met the "about missing Msvcr110.dll Some records", there are children shoes touched on the point to see a few eyes oh. After installation, the original Apache all kinds of virtual host configuration copy past (the author local use multi-port virtual host to develop a variety of stations), open the site, dumbfounded is 403,forbidden ah, very helpless ah.
Ask Goojje, looking for degrees Niang, seems to have similar situation, comprehensive look, found the official upgrade documents, English station Everyone can also open to see Ah, I believe you understand.
Upgrading to 2.4 from 2.2-apache HTTP Server Version 2.4
The author, here is simply to say that the main cause of this is apache2.4 on some configuration items caused by the changes, as follows
2.2 Configuration:order Deny,allowdeny from all
The above is the configuration in 2.2, and 2.4 needs to be changed to the following
2.4 Configuration:require all denied
2.4 Compared to 2.2 is obviously concise, ah, is really a small line.
Finally, the lazy technical garden send a detailed virtual host VirtualHost configuration (Port-based, the others are similar)
Listen 8080<virtualhost *:8080> ServerAdmin [email protected] documentroot "F:/website/niuxg" ServerName Lo Calhost errorlog "Logs/niuxg-error.log" #CustomLog "logs/niuxg-access.log" Common <directory "f:/website/niuxg ">options Indexes followsymlinksallowoverride all#order allow,deny#allow from all Require all granted </di Rectory></virtualhost>
The two lines commented out are for apache2.2, upgrade to 2.4 to change to the last line as well.
(GO) wamp2.5 virtual host VirtualHost 403 Forbidden Problem Resolution