Home  >  Article  >  Backend Development  >  Apache virtual domain name settings

Apache virtual domain name settings

WBOY
WBOYOriginal
2016-07-28 08:29:431050browse

1. Enable Include conf/extra/httpd-vhosts.conf in httpd.conf

2. Modify C:wamp64binapacheapache2.4.17confextrahttpd-vhost.conf and add the following

<VirtualHost *:80>
    ServerAdmin project.com
    DocumentRoot "C:\wamp64\www\project"
    ServerName project.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
3. Modify hosts in the C:WindowsSystem32driverstc folder File, add

127.0.0.1 project.com

The above introduces the settings of the apache virtual domain name, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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