Home > Backend Development > PHP Tutorial > Apache virtual domain name settings

Apache virtual domain name settings

WBOY
Release: 2016-07-28 08:29:43
Original
1090 people have browsed it

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>
Copy after login
3. Modify hosts in the C:WindowsSystem32driverstc folder File, add

127.0.0.1 project.com
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template