一台单IP服务器多个网站的搭建 | 以前收集的一些笔记信息整理出来一下,看了下,这个安全是有问题的,实际运用时请以实际情况更改……
NameVirtualHost *:80 <VirtualHost www.searu.org:80> ServerName www.searu.org DocumentRoot "e:/wamp/www/searu" </VirtualHost> <VirtualHost localhost:80> ServerName localhost DocumentRoot "e:/wamp/www" </VirtualHost> <Directory "e:/wamp/www/searu"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <Directory "e:/wamp/www"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
发表回复