apache配置虚拟目录的步骤
#DocumentRoot "/var/www/html" DocumentRoot "/backup" Alias /html/ "/var/www/html" #定义html虚拟目录 Alias /opt "/opt" #定义opt虚拟目录 <Directory "/opt">#定义相应虚拟目录的配置 Options Indexes FollowSymLinks # Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 用http://ip地址/html和http://ip地址/opt即可访问了