Hi there Mario, The new module has just been integrated in trunk. If you have the chance, please, give it a try and let us know how it goes.
Cheers! On 03-nov-08, at 07:05, Alvaro Lopez Ortega wrote: > Hello Eric & Mario, > > Yes, a new match rule would be required, indeed. > > I must admit that I did never think of such rule type. Do not worry > much anyway, I'm planing to add it to trunk within the next few days > (so it'll be released with the upcoming Cherokee 0.11). > > Cheers! > > On 03-nov-08, at 00:04, Eric Drechsel wrote: > >> This would require a new matching rule for method? The header regex >> match rule is close, but I guess it's not possible to figure out the >> method from the headers? >> >> On Sun, Nov 2, 2008 at 1:35 PM, Mario César >> <[EMAIL PROTECTED]> wrote: >>> Hello, I am migrating from apache2 to cherokee, I had now problems >>> with almost all my sites: Moodle, Django, Drupal and Cakephp all can >>> work just great. >>> >>> But I Have problems trying to apply the webserver for a mercurial >>> repo, now it's working on http://hg.noentrar.net with apache2, here >>> it's the content of the virtual-host conf file >>> >>> --- From /etc/apache2/sites-enabled/hg >>> <VirtualHost *:80> >>> ServerName hg.noentrar.net >>> ServerAlias www.hg.noentrar.net >>> DocumentRoot /home/hg/public_html >>> >>> Alias /robots.txt /home/hg/public_html/robots.txt >>> ScriptAliasMatch ^(.*) /home/hg/public_html/hgwebdir.cgi$1 >>> >>> <Directory /home/hg/public_html> >>> AllowOverride None >>> Options +ExecCGI -MultiViews FollowSymLinks >>> AddHandler cgi-script .cgi >>> Order allow,deny >>> Allow from All >>> </Directory> >>> >>> <Location /> >>> Allow from all >>> Options ExecCGI >>> AuthType Digest >>> AuthName "Repositorio Mercurial" >>> AuthDigestProvider file >>> AuthUserFile /home/hg/hgusers.digest >>> <Limit POST PUT> >>> Require valid-user >>> </Limit> >>> </Location> >>> </VirtualHost> >>> >>> On cherokee, I create the virtual host and get the webserver >>> running. >>> >>> # cat /etc/cherokee/cherokee.conf | grep "vserver\!30" >>> vserver!30!document_root = /home/hg/public_html >>> vserver!30!domain!1 = hg.noentrar.net >>> vserver!30!nick = hg >>> vserver!30!rule!400!auth = htdigest >>> vserver!30!rule!400!auth!methods = digest >>> vserver!30!rule!400!auth!passwdfile = /home/hg/hgusers.digest >>> vserver!30!rule!400!auth!realm = Repositorio Mercurial >>> vserver!30!rule!400!encoder!deflate = 0 >>> vserver!30!rule!400!encoder!gzip = 0 >>> vserver!30!rule!400!handler = cgi >>> vserver!30!rule!400!handler!check_file = 1 >>> vserver!30!rule!400!handler!error_handler = 0 >>> vserver!30!rule!400!handler!pass_req_headers = 0 >>> vserver!30!rule!400!handler!script_alias = /home/hg/public_html/ >>> hgwebdir.cgi >>> vserver!30!rule!400!handler!xsendfile = 0 >>> vserver!30!rule!400!match = request >>> vserver!30!rule!400!match!request = ^(.*) >>> vserver!30!rule!400!only_secure = 0 >>> vserver!30!rule!300!document_root = /usr/share/cherokee/themes >>> vserver!30!rule!300!handler = file >>> vserver!30!rule!300!match = directory >>> vserver!30!rule!300!match!directory = /cherokee_themes >>> vserver!30!rule!300!match!final = 1 >>> vserver!30!rule!200!document_root = /usr/share/cherokee/icons >>> vserver!30!rule!200!handler = file >>> vserver!30!rule!200!match = directory >>> vserver!30!rule!200!match!directory = /icons >>> vserver!30!rule!200!match!final = 1 >>> vserver!30!rule!100!encoder!deflate = 0 >>> vserver!30!rule!100!encoder!gzip = 0 >>> vserver!30!rule!100!handler = common >>> vserver!30!rule!100!handler!allow_pathinfo = 0 >>> vserver!30!rule!100!handler!date = 1 >>> vserver!30!rule!100!handler!group = 0 >>> vserver!30!rule!100!handler!iocache = 1 >>> vserver!30!rule!100!handler!size = 1 >>> vserver!30!rule!100!handler!symlinks = 1 >>> vserver!30!rule!100!handler!theme = firefox3 >>> vserver!30!rule!100!handler!user = 0 >>> vserver!30!rule!100!match = default >>> vserver!30!rule!100!match!final = 1 >>> vserver!30!rule!100!only_secure = 0 >>> >>> The problem is that the authentication mechanism has only validate >>> the >>> user to Enter, I want has it was on Apache to require a valida user >>> for POST. This way any user can access and navigate the mercurial >>> repo, but just valid users can POST, this way just valid users can >>> push to a mercurial repositorie. >>> >>> It's Posible ? >>> >>> Best Regards. >>> -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
