If a php project is deployed on the server and cannot be accessed through the domain name, 403 is displayed.

Source: Internet
Author: User
Windowsserver2008 system wampserver integration environment to bind the domain name with this method: Start wamp open httpd. conf find the Includeconfextrahttpd-mpm.conf to remove the front. In the "D: wampbinapacheApache2.4.4confextra" directory, find the http... windows server 2008 System wampserver integration environment.
This method is used to bind a Domain Name:
Start wamp open httpd. conf find Include conf/extra/httpd-mpm.conf to remove the # above.

Find the httpd-vhosts.conf file under the D: wampbinapacheApache2.4.4confextra directory

There are examples. Write our own example

ServerAdmin admin@xxx.comDocumentRoot "D:/wamp/www/xxx.com"ServerName www.xxx.comErrorLog "logs/www.xxx.com-error.log"CustomLog "logs/www.xxx.com-access.log" common

Open the host file and write 127.0.0.1 www.xxx.com

Reply content:

Windows server 2008 wampserver Integration Environment
This method is used to bind a Domain Name:
Start wamp open httpd. conf find Include conf/extra/httpd-mpm.conf to remove the # above.

Find the httpd-vhosts.conf file under the D: wampbinapacheApache2.4.4confextra directory

There are examples. Write our own example

ServerAdmin admin@xxx.comDocumentRoot "D:/wamp/www/xxx.com"ServerName www.xxx.comErrorLog "logs/www.xxx.com-error.log"CustomLog "logs/www.xxx.com-access.log" common

Open the host file and write 127.0.0.1 www.xxx.com

Check the permission and check whether the directory is correct

Generally, you need to check the apache conf file for the 403 forbidden issue.
Especially in

Order Deny, Allow
Allow from all
Require all granted

Pay special attention to this.
As for the specific meaning, you can search for the materials by yourself. Generally, 403 is caused by improper directory configuration.
Wish everything went well.

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.