0
回答
配置apache运行asp.net网站。。
华为云数据库免费试用   

现要将发布在IIS下的网站发布在apache下。

我使用的是mod_aspdotnet-2.0.0.msi

在httpd.conf中已经配置过我自己的目录。目录内容如下:

#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
AddHandler asp.net asax ascx ashx asmx 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 /apacheText "D:/apacheText"
# Map all requests for /apacheText to the application files
Alias /apacheText "D:/apacheText"
# Allow asp.net scripts to be executed in the apacheText example
<Directory "D:/apacheText">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.htm Main.aspx
</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>

访问我的静态测试页面(testNet.html)可以正常显示。说明服务能够正常。

然后我访问Main.aspx页面,显示:


Forbidden

You don't have permission to access /Frame/Main.aspx on this server.

Apache/2.0.64 (Win32) Server at www.liuhuan.com Port 80



哪位高手能够给我说说问题出自哪里了。。。。。谢谢了。

举报
Ryan-瑞恩
发帖于6年前 0回/1K+阅
顶部