Hello.                                                                          
                                                                                
                     
First you must change the handler and use CGI instead of SCGI.

You don't need an information source, hgwebdir doesn't run any script
under that path (as with PHP or Perl), it just runs. So, after
selecting CGI, set Script Alias to /var/www/hg/hgwebdir.cgi

You need to create a repository with hg init, too, but hgwebdir should
now just run and complain about that.

Regards.
                                                                                
              
On Thu, May 21, 2009 at 06:20:26PM +0200, Angel Luis Garcia Sanchez wrote:
>    Hi.
> 
>    I've tried run mercurial repository with cherokee, but i can't.
> 
>    I've done this:
> 
>    1.- Create /var/www/hg directory
>    2.- Create /var/www/hg/repos directory
>    3.- Copy hgwebdir.cgi to /var/www/hg
>    4.- chmod a+x hgwebdir.cgi
>    5.- Create /var/www/hg/hgweb.config file:
>        [collections]
>        ./repos/ = /var/www/hg/repos/
>        [web]
>        style = gitweb
>        
>    6.- chown www-data:www-data -R /var/www/hg/
>    7.- Added new rule to default Virtual Server.
>        Type: Directory
>        Web Directory: /hg
>        Handler: SCGI
>        Common CGI options enables: None
>        Balancer: Round Robin
>        Information Sources: hg-cgi
>            hg-cgi Settings:
>                Type: Local Interpreter
>                Connection: localhost
>                Interpreter: /var/www/hg/hgwebdir.cgi
> 
>    When i try to explore repository i get this error:
> 
>    503 Service Unavailable
> 
>    If i run hgwebdir.cgi script in console i get:
> 
>    Status: 200 Script output follows
>    Content-Type: text/html; charset=UTF-8
> 
>    <?xml version="1.0" encoding="UTF-8"?>
>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>    "[1]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>    <html xmlns="[2]http://www.w3.org/1999/xhtml"; xml:lang="en-US"
>    lang="en-US">
>    <head>
>    <link rel="icon" href="/static/hgicon.png" type="image/png" />
>    <meta name="robots" content="index, nofollow"/>
>    <link rel="stylesheet" href="/static/style-gitweb.css" type="text/css" />
> 
>    <title>Mercurial repositories index</title>
>    </head>
>    <body>
> 
>    <div class="page_header">
>        <a href="[3]http://www.selenic.com/mercurial/"; title="Mercurial"
>    style="float: right;">Mercurial</a>
>        Repositories list
>    </div>
> 
>    <table cellspacing="0">
>        <tr>
>            <td><a href="?sort=-name">Name</a></td>
>            <td><a href="?sort=description">Description</a></td>
>            <td><a href="?sort=contact">Contact</a></td>
>            <td><a href="?sort=lastchange">Last change</a></td>
>            <td>&nbsp;</td>
>            <td>&nbsp;</td>
>        </tr>
> 
>    </table>
>    <div class="page_footer">
> 
>    </div>
>    </body>
>    </html>
> 
>    Others datas:
>        Operative System: Ubuntu 8.04
>        Cherokee Version: 0.99.15
>        Mercurial Version: 1.0.1
> 
>    How can i fix it?
> 
>    Thanks.
> 
> References
> 
>    Visible links
>    1. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
>    2. http://www.w3.org/1999/xhtml
>    3. http://www.selenic.com/mercurial/

> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee


-- 
                   Press every key to continue.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to