日期:2014-05-20  浏览次数:21226 次

apache 配置asp.net模块的相关问题
我目前用的apache版本是 2.2.8的,今天为了让apache也能运行asp.net代码,于是按照网上的文档配置,
下载asp.net2.2版的模块没问题,安装也没问题,然后修改httpd.conf配置文件,
配置如下:
#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx asp aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
  <IfModule mod_aspdotnet.cpp>
  # Mount the ASP.NET example application
AspNetMount /active "f:/apache/htdocs/active"
# Map all requests for /active to the application files
Alias /active "f:/apache/htdocs/active"
# Allow asp.net scripts to be executed in the active example
<Directory "f:/apache/htdocs/active">
  Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
  DirectoryIndex Default.htm Default.aspx Default.asp index.asp
</Directory>
# For all virtual ASP.NET webs, we need the aspnet_client files
# to serve the client-side helper scripts.
 
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"

<Directory
"C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
 
  </Directory>
  </IfModule>

其实网上的配置大致都差不多是这样子,不过也不知道我为什么不行,
修改完后,我的apache启动不了,查看windows错误报告是:
The Apache service named reported the following error:
>>> <Directory> directive requires additional arguments  

确实不太清楚是什么问题唉。

如果有谁配置过的或许知道是什么原因,或许有谁对apache比较了解

------解决方案--------------------
http://www.google.com.hk/search?hl=zh-CN&source=hp&biw=1916&bih=1013&q=+%3CDirectory%3E+directive+requires+additional+arguments+++&oq=+%3CDirectory%3E+directive+requires+additional+arguments+++&aq=f&aqi=&aql=&gs_sm=e&gs_upl=531l531l0l1l1l0l0l0l0l0l0l