Apache虚拟目录的设置
Alias /uploads "D:/Program Files/Apache2/uploads"
<Directory "D:/Program Files/Apache2/uploads">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
Allow from all
</Directory>
Apache虚拟主机的设置
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.phpshao.cublog.cn
DocumentRoot /www/docs/dummy-host.phpshao.cublog.cn
ServerName dummy-host.phpshao.cublog.cn
ServerAlias www.dummy-host.phpshao.cublog.cn
ErrorLog logs/dummy-host.phpshao.cublog.cn-error_log
CustomLog logs/dummy-host.phpshao.cublog.cn-access_log common
</VirtualHost>
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.phpshao.cublog.cn
DocumentRoot /www/docs/dummy-host.phpshao.cublog.cn
ServerName dummy-host.phpshao.cublog.cn
ServerAlias www.dummy-host.phpshao.cublog.cn
ErrorLog logs/dummy-host.phpshao.cublog.cn-error_log
CustomLog logs/dummy-host.phpshao.cublog.cn-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.phpshao.cublog.cn
DocumentRoot /www/docs/dummy-host2.phpshao.cublog.cn
ServerName dummy-host2.phpshao.cublog.cn
ErrorLog logs/dummy-host2.phpshao.cublog.cn-error_log
CustomLog logs/dummy-host2.phpshao.cublog.cn-access_log common
</VirtualHost>
ServerAdmin webmaster@dummy-host2.phpshao.cublog.cn
DocumentRoot /www/docs/dummy-host2.phpshao.cublog.cn
ServerName dummy-host2.phpshao.cublog.cn
ErrorLog logs/dummy-host2.phpshao.cublog.cn-error_log
CustomLog logs/dummy-host2.phpshao.cublog.cn-access_log common
</VirtualHost>