Phpstudy configuring multi-site and multi-domain methods encountered 403 error resolution

Source: Internet
Author: User
This article mainly introduces the Phpstudy configuration multi-site multi-domain name method and encountered 403 error resolution method, the need for friends can refer to the following

This article is not suitable for a bit do not understand multi-site multi-domain name. Suitable for encountering difficulties, a little on the. Ok. More casual.

First, open the site domain name management, configuration, the site domain name and directory can be set by itself, the port reset one, not 80, and then add and then save.

Open the profile vhosts and you'll see something new on port 801.

Add new port number to Gen Y in config file http.conf

Then under configuration in the Hosts file, 127.0.0.1 www.aaa.com

Then, Madeleine Gg, appeared forbidden, 403, no access rights.

A great deal of effort finally found the solution, the following first copy the contents of the solution, and finally attach the original address.

The first step

Under the Hosts file under C:\WINDOWS\SYSTEM32\DRIVERS\ETC (do not add the # number, which is a comment)

Second step to find Apache under the httpd.conf file open, minus 171 lines front of the #

Step three in Apache configuration file vhosts.conf, configure the following

Restart Apache to

To.... The domain name is well-equipped. Now there's a problem.

Browser out of such a page but when you enter www.test.com/index.php, you can access the index.php program needs to write the full path .... How to break ... Comment out the 18 lines in the third step or add a + (plus sign) to the two words in the back of the options and restart Apache to directly access the www.test.com this problem is solved!!!! At this time there is a problem direct access to the index.php folder and so on. Skip directly,, and what's the matter directly past, to visit on the line. At this time open httpd.conf, 251 lines commented out, this problem solved (sometimes do not need to comment out, according to their own situation) as if the static site needs to comment, dynamic site do not comment

Add a sentence of your own visit with the upper port such as: http://www.aaa.com:801/

Summarize

Related Article

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.