CruiseControl.Net 仪表板 + Apache

2024-03-28

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

我尝试按照描述安装 mod_aspdotnethere http://weblogs.asp.net/israelio/archive/2005/09/11/424852.aspx。我可以运行示例 aspx 页面,但无法运行 cc.net。我需要施展什么魔法吗?

物有所值,http://localhost/ccnet http://localhost/ccnet设法将我重定向到http://localhost/ccnet/ViewFarmReport.aspx 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 下载链接。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

CruiseControl.Net 仪表板 + Apache 的相关文章

随机推荐