VirtualHost configuration

WBOY
Release: 2016-07-25 08:45:55
Original
1779 people have browsed it
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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!