Rumah > Artikel > pembangunan bahagian belakang > VirtualHost 配置
VirtualHost 配置 NameVirtualHost *:80 /*设置端口*/DocumentRoot "E:\wamp\www" /*设置文件路径*/ ServerName localhost:80 /*访问域名*/ Options Indexes FollowSymLinks /*禁止显示Apache目录列表-Indexes FollowSymLinks*/ AllowOverride all Order allow,deny Allow from all /*配置新的域名,配置同上*/ DocumentRoot "E:\project\first" ServerName first.com ServerAlias *.first.com Options Indexes FollowSymLinks AllowOverride all Order allow,deny Allow from all |