Home  >  Article  >  Backend Development  >  VirtualHost configuration

VirtualHost configuration

WBOY
WBOYOriginal
2016-07-25 08:45:551781browse
VirtualHost configuration
NameVirtualHost *:80 /*Set port*/


DocumentRoot "E:wampwww" /*Set file path*/
ServerName localhost:80                                                                                                                                                           Options Indexes FollowSymLinks /*

Disable display of Apache directory listing-Indexes FollowSymLinks*/ AllowOverride all Order allow,deny Allow from all




/*Configure a new domain name, the configuration is the same as above*/
                                       DocumentRoot "E:projectfirst"                                                     ServerName first.com
ServerAlias ​​*.first.com
             
Options Indexes FollowSymLinks                                           AllowOverride all
Order allow,deny
Allow from all







This topic was reviewed and approved by Xiaobei on 2016-1-22 08:18

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