Detailed explanation of how to configure virtual host in apache_PHP tutorial

WBOY
Release: 2016-07-21 15:05:50
Original
1006 people have browsed it

1. Open the vhost configuration in the apache configuration file
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf

2.extra directory httpd-vhosts.conf
configuration, there are three: the first DocumentRoot, the absolute directory of the project, followed by /; The second is ServerPath, which is consistent with DocumentRoot; the third is ServerName, the domain name you entered in the browser. For example: test.123.cn

3. Point to the domain name in the hosts file. For example: 127.0.0.1 test.123.cn

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327665.htmlTechArticle1. Open the vhost configuration in the apache configuration file LoadModule vhost_alias_module modules/mod_vhost_alias.so Include conf/extra/httpd- vhosts.conf 2. Enter httpd-vhosts.conf in the extra directory...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!