在httpd.conf中搜索Alisa,配置文件中默认有
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
按照此方法,添加想要设置的虚拟目录即可,如:
Alias /stcms_html/ "/var/www/html/stcms_html/"
<Directory "/var/www/html/stcms_html">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
转载于:https://blog.51cto.com/johnsz/1131905