(GO) wamp2.5 virtual host VirtualHost 403 Forbidden Problem Resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.