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