日期:2014-05-17  浏览次数:20955 次

windows2003下apache+asp.net的域名指向目录问题
运行环境:Apache/2.2.14 (Win32) mod_aspdotnet/2.2

httd.conf配置

DocumentRoot "d:/htdocs"

AspNetMount /asproot "d:/wwwroot"

Alias /asproot "d:/wwwroot"

NameVirtualHost *:80

<VirtualHost *:80> 
  ServerAdmin admin 
  DocumentRoot /asproot
  ServerName www.xw.com 
</VirtualHost>
 
hosts配置:127.0.0.1 www.xw.com

用:http://localhost/asproot 能正常访问

怎么配置才能用:http://localhost 正常访问?

------解决方案--------------------
AspNetMount / "d:/wwwroot"