Home  >  Article  >  Backend Development  >  Solve the problems encountered during configuring multiple domain names in phpStudy2016

Solve the problems encountered during configuring multiple domain names in phpStudy2016

黄舟
黄舟Original
2017-10-20 09:06:482461browse

This article mainly introduces a summary of the problems encountered during the configuration of multiple domain names in phpStudy2016. Friends who need it can refer to it

The first step

In C :\Windows\System32\drivers\etc Add

to the hosts file under \Windows\System32\drivers\etc. The second step is to find the httpd.conf file under Apache and open it. Remove the ## in front of line 171.

##The third step is to configure the following content in the apache configuration file vhosts.conf

Just restart Apache. . . . The domain name is assigned. . There is another problem at this time

#The browser displays a page like this, but when you enter www.test.com/index.php, you can access the index.php program. Write the full path. . . . How to break. . . Comment out the 18 lines in the third step or add + (plus sign) in front of the two words after options. Then restart Apache and you can directly access www.test.com


This problem will be resolved solved! ! ! ! At this time, there is another problem. When you directly access the folders in index.php, you can't see anything. . . I skipped it directly, what happened? Now open httpd.conf, comment out line 251, and the problem is solved

##Summary

The above is the detailed content of Solve the problems encountered during configuring multiple domain names in phpStudy2016. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn