CruiseControl.Net仪表板+阿帕奇 [英] CruiseControl.Net Dashboard + Apache
问题描述
我试图让cc.net仪表板,也有它的apache构建机器上运行。
我试图安装mod_aspdotnet描述这里。我可以运行该示例aspx页面,但我无法得到cc.net运行。有一些魔法我需要做什么?
有关它的价值,的http://本地主机/ CCNET 设法我重定向到的 HTTP://localhost/ccnet/ViewFarmReport.aspx 但是这给了我一个404错误
下面是相关的httpd.conf部分:
#asp.net
的LoadModule aspdotnet_module模块/ mod_aspdotnet.soAddHandler的asp.net ASAX ASCX ASHX ASMX ASPX AXD配置CS的csproj licx REM资源RESX肥皂动vbproj vsdisco webinfo< IfModule mod_aspdotnet.cpp>
#挂载ASP.NET / ASP应用程序
AspNetMount / CCNETC:/ Program Files文件/ CruiseControl.NET / webdashboard
#/ SampleASP是别名为asp.net执行 #地图/ ASP应用程序文件的所有请求
别名/ CCNETC:/ Program Files文件/ CruiseControl.NET / webdashboard
#maps / CCNET要求到C:/ Program Files文件/ CruiseControl.NET / webdashboard
#now才能到/ CCNET键入http://本地主机/ CCNET
#它会重定向HTTP://本地主机/ CCNET到C:/ Program Files文件/ CruiseControl.NET / webdashboard #允许asp.net脚本在/ SampleASP例子来执行
<目录C:/ Program Files文件/ CruiseControl.NET / webdashboard>
有FollowSymLinks ExecCGI
为了允许,拒绝
所有允许
DirectoryIndex的index.htm的的Index.aspx的Default.aspx
#默认的索引页为.htm和的.aspx
< /目录> #对于所有ASP.NET虚拟网,我们需要的aspnet_client文件
#以服务客户端辅助脚本。
AliasMatch /aspnet_client/system_web/(\\d+)_(\\d+)_(\\d+)_(\\d+)/(.*)C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP .NETClientFiles / $ 4
<目录C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles>
有FollowSymLinks
为了允许,拒绝
所有允许
< /目录>
< / IfModule>
#asp.net
这是我做了什么,亚当的回答启发:
AliasMatch /ccnet(.*\\.aspx.*)C:/ Program Files文件/ CruiseControl.NET / webdashboard / Default.aspx的
别名/ CCNET /C:/ Program Files文件/ CruiseControl.NET / webdashboard /
尝试所有的.aspx文件匹配到webdashboard应用程序,否则只是拉东西了文件系统。
我现在有工作的CSS,图片,应用程序的东西,CCTray下载链接。
I'm trying to get cc.net dashboard running on a build machine that also has apache on it.
I've tried installing mod_aspdotnet as described here. I can run the sample aspx page, but I am unable to get cc.net to run. Is there some magic I need to do?
For what it's worth, http://localhost/ccnet manages to redirect me to http://localhost/ccnet/ViewFarmReport.aspx but that gives me a 404 error.
Below is the relevant httpd.conf section:
#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
This is what I've done, inspired by Adam's answer:
AliasMatch /ccnet(.*\.aspx.*) "C:/Program Files/CruiseControl.NET/webdashboard/default.aspx"
Alias /ccnet/ "C:/Program Files/CruiseControl.NET/webdashboard/
Try match all the .aspx files to the webdashboard application, otherwise just pull stuff off the filesystem.
I now have working css, images, application stuff, CCTray download link.
这篇关于CruiseControl.Net仪表板+阿帕奇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!