gpt4 book ai didi

asp.net - CruiseControl.Net 仪表板 + Apache

转载 作者:行者123 更新时间:2023-12-03 21:56:40 25 4
gpt4 key购买 nike

我正在尝试让 cc.net 仪表板在也装有 apache 的构建机器上运行。

我已经尝试按照描述安装 mod_aspdotnet here .我可以运行示例 aspx 页面,但无法运行 cc.net。我需要施展魔法吗?

物有所值,http://localhost/ccnet设法将我重定向到 http://localhost/ccnet/ViewFarmReport.aspx但这给了我一个 404 错误。

下面是相关的 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 /asp application
AspNetMount /ccnet "C:/Program Files/CruiseControl.NET/webdashboard"
#/SampleASP is the alias name for asp.net to execute

# Map all requests for /asp to the application files
Alias /ccnet "C:/Program Files/CruiseControl.NET/webdashboard"
#maps /ccnet request to "C:/Program Files/CruiseControl.NET/webdashboard"
#now to get to the /ccnet type http://localhost/ccnet
#It'll redirect http://localhost/ccnet to "C:/Program Files/CruiseControl.NET/webdashboard"

# Allow asp.net scripts to be executed in the /SampleASP example
<Directory "C:/Program Files/CruiseControl.NET/webdashboard">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.htm index.aspx default.aspx
#default the index page to .htm and .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>
#asp.net

最佳答案

这就是我所做的,受到 Adam 的回答的启发:

AliasMatch /ccnet(.*\.aspx.*) "C:/Program Files/CruiseControl.NET/webdashboard/default.aspx" 
Alias /ccnet/ "C:/Program Files/CruiseControl.NET/webdashboard/

尝试将所有 .aspx 文件与 webdashboard 应用程序匹配,否则只需从文件系统中提取内容。

我现在有工作的 css、图像、应用程序的东西、CCTray 下载链接。

关于asp.net - CruiseControl.Net 仪表板 + Apache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/471276/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com