<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.web.cherokee.general">
    <title>gmane.comp.web.cherokee.general</title>
    <link>http://blog.gmane.org/gmane.comp.web.cherokee.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8853"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8852"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8851"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8850"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8849"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8848"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8847"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8846"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8845"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8844"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8843"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8842"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8841"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8840"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8839"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8838"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8837"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8836"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8835"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8834"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8853">
    <title>Re: Migration from Apache to Cherokee: URI tweaking</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8853</link>
    <description>&lt;pre&gt;I tried both "internal" and "external" with the same effect. "external" has the debugging advantage to show the result of substitution.

Nginx and lighttpd are based on original concepts, different from Apache.

* lightpd:
You regexp-match on the URL and you tell that such initial URL part is related to such document root, e.g.:
     $HTTP["url"] =~ "^/LXR_signature/" {
            alias.url += ( "/LXR_signature/DB_id" =&amp;gt; "common_LXR_root_directory" )
     }
and there is another directive to name the files which are scripts.

*nginx:
There is no notion of "master" DocumentRoot and Alias as in Apache. Every URL can be individually diverted to its own root. Of course in the simplest case, this is equivalent to DocumentRoot or Cherokee's directory rule or default rule. Part of an URL is regexp-matched by a location directive and you tell what you want to do with the bits without rewrite, e.g.:
    server { ...
        location ~ ^/LXR_signature/[^/]+(.*)$ {
            alias /LXR_root_directory/$1 ;     # for ordinary files like .css or images
            location ~ ^(/LXR_signature/[^/]+/)(script_names) {
                set $virtroot $1;
                set $scriptname $2;
                alias /LXR_root_directory;
                include fastcgi.conf;
                fastcgi_param SCRIPT_FILENAME $document_root$scriptname;   # compute which script to launch
                fastcgi_param SCRIPT_NAME $virtroot$scriptname; # unaltered CGI variable
                fastcgi_pass unix://...;
            }
        }
    }

My idea was to mimic nginx' "action" block. Unhappily, I could not fancy how to simultaneously "untweak" the initial URL part and launch the correct script. I had to break it into two separate rules. The first one identifies the LXR service and removes DB_id to provide an "ordinary" script path, but doing so I lose DB_id. The second one is a common directory rule with CGI handler, but since the URI has changed the called script fails because it takes a segment of the web directory as the DB_id.

Anyway, considering the tweaks needed to port LXR on various web servers, I'm more and more convinced that putting the DB_id in the middle of the web directory name (exactly, just before the script name) was a bad design choice (but ages ago, you had Apache - full stop). That information belongs in the script parameters, maybe as a root for PATH_INFO. Notwithstanding the compatibility issue with existing LXR sites, redesigning this needs a lot of effort (first for a neat design, next in trying not to break the core code).

Thus if you know the name of a Cherokee variable, like nginx' $originaluri, this could temporarily solve the problem.

Thanks for your answers and your patience.



________________________________
 De : Daniel Lo Nigro &amp;lt;lists&amp;lt; at &amp;gt;dan.cx&amp;gt;
À : Anfré Littoz &amp;lt;page74010-chrk&amp;lt; at &amp;gt;yahoo.fr&amp;gt; 
Cc : cherokee List &amp;lt;Cherokee&amp;lt; at &amp;gt;lists.octality.com&amp;gt; 
Envoyé le : Mercredi 1 mai 2013 15h03
Objet : Re: [Cherokee] Migration from Apache to Cherokee: URI tweaking
 


Hmm I thought rewrite rules shouldn't change the URI if they're marked as "internal". Does LXR have instructions for Nginx or Lighttpd? If so, you should be able to convert those rules to Cherokee rules. Apache has so many configuration options that sometimes it's hard to find the exact match._______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Anfré Littoz</dc:creator>
    <dc:date>2013-05-01T15:05:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8852">
    <title>Re: Migration from Apache to Cherokee: URI tweaking</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8852</link>
    <description>&lt;pre&gt;Hmm I thought rewrite rules shouldn't change the URI if they're marked as
"internal". Does LXR have instructions for Nginx or Lighttpd? If so, you
should be able to convert those rules to Cherokee rules. Apache has so many
configuration options that sometimes it's hard to find the exact match.


On Wed, May 1, 2013 at 10:57 PM, Anfré Littoz &amp;lt;page74010-chrk&amp;lt; at &amp;gt;yahoo.fr&amp;gt;wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-05-01T13:03:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8851">
    <title>Re: Migration from Apache to Cherokee: URI tweaking</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8851</link>
    <description>&lt;pre&gt;Yes, this is a rewrite rule and consequently it changes the URI.

What I need is a rule, which can be flagged "final", causing execution of a CGI script whose home directory is known (e;g. /cgi-bin) and whose name and eventually arguments are taken from the URI ($x substitutions) while the environment variables SERVER_NAME, SCRIPT_NAME, ... are set from the original URI.

From the documentation, I'm afraid this is not possible with Cherokee.

The alternate solution would be to remove DB_id from the "script web path" part since this was a bad design decision as it mixes script path and argument but this involves a major rewrite of LXR initialisation and configuration. Maybe this is the wise direction since it could greatly simplify integration with web servers and allow for more server candidates.

ajl



________________________________
 De : Daniel Lo Nigro &amp;lt;lists&amp;lt; at &amp;gt;dan.cx&amp;gt;
À : cherokee List &amp;lt;Cherokee&amp;lt; at &amp;gt;lists.octality.com&amp;gt; 
Envoyé le : Mercredi 1 mai 2013 14h33
Objet : Re: [Cherokee] Migration from Apache to Cherokee: URI tweaking
 


I haven't used Cherokee for a while, but this is known as a rewrite rule ("internal" redirect).


_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Anfré Littoz</dc:creator>
    <dc:date>2013-05-01T12:57:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8850">
    <title>Re: Migration from Apache to Cherokee: URI tweaking</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8850</link>
    <description>&lt;pre&gt;I haven't used Cherokee for a while, but this is known as a rewrite rule
("internal" redirect).


On Wed, May 1, 2013 at 8:27 PM, Anfré Littoz &amp;lt;page74010-chrk&amp;lt; at &amp;gt;yahoo.fr&amp;gt;wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-05-01T12:33:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8849">
    <title>Migration from Apache to Cherokee: URI tweaking</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8849</link>
    <description>&lt;pre&gt;Hi,

Don't know if this the proper place for such a question, so excuse me if this is considered as "noise".

I'm presently testing Cherokee as an alternative to Apache for the LXR project (see http://lxr.sourceforge.net). As long as I use elementary LXR configuration features, it works fine.

But, when I come to try to serve several databases (for short, database is the closest ordinary concept equivalent to its "service") with a single application instance, a trick is played on the URI, which I can't fancy how to convert.

LXR is driver by this kind of URI:

http://hostname/LXR_service_signature/DB_id/script_file/path_for_script?arguments

i.e. an argument-like is interspersed inside the web-path for the script. Under Apache, directive AliasMatch strips off this information and simultaneously routes the request to an alternate document root. The important point is the original URI is not changed and available for parsing unaltered by the script which retrieves the DB_id.

In my conversion attempt, I used either a directory rule (on LXR_service_signature) or regexp rule, both with a redirect handler to remove the DB_id and other non-path related bits. Unhappily, this rewrites the URI and defeats the script processing which no longer can retrieve the DB_id.

Does there exist in Cherokee a means to launch a script whose command line is generated from groups ($1, $2, ...) captured by the regexp-based rule so that the URI is unaltered (environment variables reflect the initial URI)?

ajl
_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Anfré Littoz</dc:creator>
    <dc:date>2013-05-01T10:27:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8848">
    <title>New features in separate branches</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8848</link>
    <description>&lt;pre&gt;Hi,


For a very long time, I'm trying to maintain some rules and handlers that 
are not part of the main cherokee distribution and since we are currently 
still focused on solving bugs opposed to introducing more, new features 
get a bitrotten over time.

Since Alvaro has suggested the following page, me git n00b, was already 
experimenting with it. To my suprise with great success, I understood what 
I was doing, and it looked pretty on the network page as well.
&amp;lt;http://nvie.com/posts/a-successful-git-branching-model/&amp;gt;

I started to work to get my older features in a more recent Cherokee 
version and put them in separate branches which it would pull locally for 
a deployment. I have just placed some new code on github that might be 
interesting for more people. Do consider it experimental and not tuned for 
any real world high performance scenario, but very useful for any service 
that implements DBslayer, or some custom API.

&amp;lt;https://github.com/cherokee/webserver/tree/rule_fairuse&amp;gt;

It basically allows to count (based on unique IP address) each request 
that passed by the rule. The rule will match if the predefined limit has 
been exceeded.


Stefan
&lt;/pre&gt;</description>
    <dc:creator>Stefan de Konink</dc:creator>
    <dc:date>2013-04-29T13:59:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8847">
    <title>Re: Cherokee Digest, Vol 58, Issue 14</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8847</link>
    <description>&lt;pre&gt;http://cherokee-project.com/community.html

404; linked from http://cherokee-project.com/contribute.html


On Apr 27, 2013, at 6:00 AM, cherokee-request&amp;lt; at &amp;gt;lists.octality.com wrote:


_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>vacant server</dc:creator>
    <dc:date>2013-04-27T11:50:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8846">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8846</link>
    <description>&lt;pre&gt;Alvaro, perhaps cherokee-project.com should be using an A record for Github
as per their docs for Github Pages on a root domain.

---
Regards,
Daniel

Sent from my phone - please excuse any typos.
On 27/04/2013 9:13 AM, "MATSUU Takuto" &amp;lt;matsuu&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-04-27T01:11:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8845">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8845</link>
    <description>&lt;pre&gt;Hi.

cherokee-project.com displays frames with www.cherokee-project.com.
www.cherokee-project redirects to cherokee-project.com. It seems that
redirect loop.

thanks,
matsuu


2013/4/26 Alvaro Lopez Ortega &amp;lt;alvaro&amp;lt; at &amp;gt;alobbs.com&amp;gt;

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>MATSUU Takuto</dc:creator>
    <dc:date>2013-04-26T23:13:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8844">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8844</link>
    <description>&lt;pre&gt;Thank you very much Makuto.

It should be fixed now.

All the best,
Alvaro

On Fri, Apr 26, 2013 at 4:16 PM, MATSUU Takuto &amp;lt;matsuu&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Alvaro Lopez Ortega</dc:creator>
    <dc:date>2013-04-26T14:24:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8843">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8843</link>
    <description>&lt;pre&gt;Oh yeah, I totally forgot about that.
As per
https://help.github.com/articles/setting-up-a-custom-domain-with-pages, Github
support using an A record for root domains (204.232.175.78).


On Sat, Apr 27, 2013 at 12:16 AM, MATSUU Takuto &amp;lt;matsuu&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-04-26T14:18:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8842">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8842</link>
    <description>&lt;pre&gt;Hi.

To use CNAME on root domain is invalid as RFC. It has many troubles.

http://blog.cherokee-project.com/ 404
http://planet.cherokee-project.com/ 404
http://forum.cherokee-project.com/ 404
MX record: none.

I propose to use www.cherokee-project.com. IN CNAME cherokee.github.io.

cf.
http://superuser.com/questions/264913/cant-set-example-com-as-a-cname-record

thanks,
matsuu


2013/4/19 Alvaro Lopez Ortega &amp;lt;alvaro&amp;lt; at &amp;gt;alobbs.com&amp;gt;

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>MATSUU Takuto</dc:creator>
    <dc:date>2013-04-26T14:16:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8841">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8841</link>
    <description>&lt;pre&gt;Great stuff!!

On Fri, Apr 19, 2013 at 12:06 PM, Daniel Lo Nigro &amp;lt;lists&amp;lt; at &amp;gt;dan.cx&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Alvaro Lopez Ortega</dc:creator>
    <dc:date>2013-04-19T11:14:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8840">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8840</link>
    <description>&lt;pre&gt;Good work people!

El 19/04/13 12:06, Daniel Lo Nigro escribió:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Alvaro G. [Andor]</dc:creator>
    <dc:date>2013-04-19T10:10:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8839">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8839</link>
    <description>&lt;pre&gt;http://cherokee-project.com/ is now live on Github Pages. Awesome :)


On Fri, Apr 19, 2013 at 12:53 PM, Daniel Lo Nigro &amp;lt;lists&amp;lt; at &amp;gt;dan.cx&amp;gt; wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-04-19T10:06:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8838">
    <title>Re: Migration of website is done.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8838</link>
    <description>&lt;pre&gt;Thanks Alvaro, I just need someone to merge this commit and then the CNAME
should work :)

https://github.com/cherokee/cherokee.github.com/pull/6


On Fri, Apr 19, 2013 at 12:21 PM, Alvaro Lopez Ortega &amp;lt;alvaro&amp;lt; at &amp;gt;alobbs.com&amp;gt;wrote:

_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Lo Nigro</dc:creator>
    <dc:date>2013-04-19T02:53:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8837">
    <title>Re: Embedded server</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8837</link>
    <description>&lt;pre&gt;On Fri, Apr 12, 2013 at 8:14 PM, M. David Peterson
&amp;lt;m.david&amp;lt; at &amp;gt;3rdandurban.com&amp;gt;wrote:


The branch with GoPro's modifications based on v1.2.101 =&amp;gt;
https://github.com/cherokee/webserver/tree/go-pro-embedded-cherokee-server--v1.2.101-base

Same modifications merged with the current HEAD of master =&amp;gt;
https://github.com/cherokee/webserver/tree/go-pro-embedded-cherokee-server--master-base

Tag for v.1.2.101 with GoPro modifications =&amp;gt;
https://github.com/cherokee/webserver/tree/v1.2.101-GoPro

&lt;/pre&gt;</description>
    <dc:creator>M. David Peterson</dc:creator>
    <dc:date>2013-04-18T02:18:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8836">
    <title>Re: Setting a user defined password at cherokee-admin</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8836</link>
    <description>&lt;pre&gt;at all.

I hadn't thought about the "ps aux" command and their gossip behaviour ;)



So I think this would be a good option (where -P prompts for a password):

echo "mypassword" | ./cherokee-admin-launcher -P

another option is to use some pam authentication (or even use the passwd
file) at http request for authentication, but this would be a little more
complicate and, by now, I don't masters the cherokee code.

To do the first idea (the -P one) I believe this should be done:
* we only need to change the
https://github.com/cherokee/webserver/blob/master/cherokee/main_admin.c file
* add a help string at "print_help()" function
* at "process_parameters()": add "P" option. At "P" case, set "unsecure" to
"1" and "password" to the inputted one (both are globals).

It's right?

Some questions:
1) if "unsecure" is set to 1, then the code won't rewrite the password, but
at line 285 it also won't use the user-defined password. So I guess that I
have to change this too. It's right?

2) if I launch the cherokee-admin with the unsecure option at command line
(with the -u option) so I can define the user and password by adding this
lines at config file (cherokee.conf)?

1!auth = authlist
1!auth!methods = digest
1!auth!realm = Cherokee-admin
1!auth!list!1!user = myuser
1!auth!list!1!password = mypassword

3) Where the "cherokee_buffer_t" structure are defined? To set a password I
need to use the cherokee_buffer_add_char() and write char by char or there
some other option to do this?

PS: my english is awful so if someone don't understand something that I
wrote, please tell me so I can reformulate the question ;)

Thanks,
--
Daniel Loureiro
------------------------------
_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Loureiro</dc:creator>
    <dc:date>2013-04-17T10:41:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8835">
    <title>Re: Setting a user defined password at cherokee-admin</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8835</link>
    <description>&lt;pre&gt;...what you could do, is prompt for a password in that function, and read
it from the commandline.

Stefan
&lt;/pre&gt;</description>
    <dc:creator>Stefan de Konink</dc:creator>
    <dc:date>2013-04-17T09:29:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8834">
    <title>Re: Setting a user defined password at cherokee-admin</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8834</link>
    <description>&lt;pre&gt;
On Wed, 17 Apr 2013, Daniel Loureiro wrote:


&amp;lt;https://github.com/cherokee/webserver/blob/master/cherokee/main_admin.c#L197&amp;gt;

The -u option makes it unsecure, a potential password could be added using 
another option. Since that is the place to check for (un)secure, I guess 
that place could also be used to assign the defined password instead. I do 
want to warn you though, this type of configuration is not "secure" at 
all.

ps aux | grep cherokee-admin

...will show it.

Stefan
&lt;/pre&gt;</description>
    <dc:creator>Stefan de Konink</dc:creator>
    <dc:date>2013-04-17T09:27:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.cherokee.general/8833">
    <title>Setting a user defined password at cherokee-admin</title>
    <link>http://permalink.gmane.org/gmane.comp.web.cherokee.general/8833</link>
    <description>&lt;pre&gt;Hi,

I want to make some changes in cherokee-admin launcher to accept a
user-defined password at command line (rather than automatically generate a
random password). But I don't known how the sources are structured. Can
someone tell me what file (or files) I need to change to do this? Is this
https://github.com/cherokee/webserver/blob/master/cherokee/main_admin.c ?

Thanks,
--
Daniel Loureiro
------------------------------
_______________________________________________
Cherokee mailing list
Cherokee&amp;lt; at &amp;gt;lists.octality.com
http://lists.octality.com/listinfo/cherokee
&lt;/pre&gt;</description>
    <dc:creator>Daniel Loureiro</dc:creator>
    <dc:date>2013-04-17T09:13:34</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.web.cherokee.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.cherokee.general</link>
  </textinput>
</rdf:RDF>
