<VirtualHost 192.168.1.171>
DocumentRoot "F:/web/www/hhjjsy"
ServerName 192.168.1.171
</VirtualHost>
<VirtualHost 192.168.1.172>
DocumentRoot "F:/web/www/phpcms"
ServerName 192.168.1.172
</VirtualHost>
<VirtualHost 192.168.1.173>
DocumentRoot "F:/web/www/so"
ServerName 192.168.1.173
</VirtualHost>
<VirtualHost 192.168.1.174>
DocumentRoot "F:/web/www/test"
ServerName 192.168.1.174
</VirtualHost>
<Directory "F:/web/www">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
本文详细介绍了如何在Apache服务器上配置多个虚拟主机站点,通过指定不同的服务器名称和文档根目录,实现了在同一台服务器上托管多个独立网站的目标。
2993

被折叠的 条评论
为什么被折叠?



