Phpstudy Configuring multi-site multi-domain steps, and 403 error resolution encountered

Source: Internet
Author: User

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, add

The second step is to find the Apache httpd.conf file Open, remove the # 171 front # Third step in Apache configuration file vhosts.conf, configure the following to restart Apache .... The domain name is well-equipped. Now there is a problem with the 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 straight, and what's going on at this time Open httpd.conf, will be 251 lines commented out, this problem solved by adding a sentence of their visit with the upper port such as: http://www.aaa.com:801/Good, happy programming bar 403 Wrong solution Original link: http://www.cnblogs.com/ssfs/p/6255791.html#3745727

Phpstudy Configuring multi-site multi-domain steps, and 403 error resolution encountered

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.