2009-01-22 5 views
3

J'essaye de faire fonctionner le tableau de bord de cc.net sur une machine de construction qui a aussi un apache dessus.CruiseControl.Net Dashboard + Apache

J'ai essayé d'installer mod_aspdotnet comme décrit here. Je peux exécuter l'exemple de page ASPX, mais je suis incapable d'exécuter cc.net. Y a-t-il de la magie à faire?

Pour ce que ça vaut, http://localhost/ccnet parvient à me rediriger vers http://localhost/ccnet/ViewFarmReport.aspx mais cela me donne une erreur 404.

est inférieure à la section httpd.conf pertinente:

#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 

Répondre

0

Je croyais le seul dans le monde en essayant d'obtenir un tel travail d'installation.

Je fixe en ajoutant la ligne: réSEAU Fichiers répertoires virtuels

<Directory "C:/Program Files/CruiseControl.NET/webdashboard"> 
    Options FollowSymlinks ExecCGI 
    AspNet Files Directories Virtual 
    Order allow,deny 
    Allow from all 
    DirectoryIndex index.htm index.aspx default.aspx 
    #default the index page to .htm and .aspx 
    </Directory> 

Je codait également carte le chemin de mon cadre dotnet, mais je ne suis pas sûr si cela est nécessaire:

<Directory "C:/Windows/Microsoft.NET/Framework/v2.0.50727"> 
    Options FollowSymlinks 
    Order allow,deny 
    Allow from all 
</Directory> 
+0

La partie "Annuaires de fichiers AspNet virtuels" a aidé. Le webdashboard apparaît maintenant. Mais cliquer sur le lien du projet entraîne une erreur 404. –

+0

Il n'est pas nécessaire de coder en dur le framework dotnet, mais il est * nécessaire * d'utiliser la ligne AliasMatch d'Adam. –

1

je devais ajouter à la fois:

  • AliasMatch/aspnet_client/system_web/(\ d +) (\ d +) (\ d +) _ (\ d +)/(. *) « C:/Windows
  • réSEAU Fichiers répertoires virtuels

Voir xml:

<IfModule mod_aspdotnet.cpp> 
    # Mount the ASP.NET /asp application 
    AspNetMount /ccnet "C:/Program Files/CruiseControl.NET/webdashboard" 

    #maps /ccnet request to "C:/Program Files/CruiseControl.NET/webdashboard/default.aspx" 
    AliasMatch /ccnet/(.*) "C:/Program Files/CruiseControl.NET/webdashboard/default.aspx" 

    # Allow asp.net scripts to be executed in the /SampleASP example 
    <Directory "C:/Program Files/CruiseControl.NET/webdashboard"> 
    Options FollowSymlinks ExecCGI 
    AspNet Files Directories Virtual 
    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> 
3

C'est ce que je l'ai fait , inspiré par la réponse d'Adam:

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

Essayez correspondre à tous les fichiers .aspx à l'application webdashboard, sinon il suffit de tirer des choses hors du système de fichiers.

J'ai maintenant des css de travail, des images, des trucs d'application, un lien de téléchargement de CCTray.