Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

url rewrite

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


dornyika at gmail

Apr 15, 2008, 3:47 PM

Post #1 of 4 (319 views)
Permalink
url rewrite

i am trying to switch from lighttpd to cherokee 0.6. i needto rewrite an
url, could you help me with that (how to do this)
i'd like to have
http://dornyika.com/blog
instead of
http://dornyika.com/cgi-bin/blosxom.cgi

thanks in advance
Darvas Dorottya

--
http://dornyika.com (currently not working)


skinkie at xs4all

Apr 15, 2008, 3:59 PM

Post #2 of 4 (292 views)
Permalink
Re: url rewrite [In reply to]

On Wed, 16 Apr 2008, Dorottya Darvas wrote:

> i am trying to switch from lighttpd to cherokee 0.6. i needto rewrite an
> url, could you help me with that (how to do this)
> i'd like to have
> http://dornyika.com/blog
> instead of
> http://dornyika.com/cgi-bin/blosxom.cgi

It must beable to do it from the admin, but I didn't do it from there yet.

This is an example:

vserver!default!request!^.+/([a-z]+).xsl$!priority = 21
vserver!default!request!^.+/([a-z]+).xsl$!handler = redir
vserver!default!request!^.+/([a-z]+).xsl$!handler!rewrite!1!substring =
/$1.xsl
vserver!default!request!^.+/([a-z]+).xsl$!handler!rewrite!1!show = 0

so basically it will rewrite anything /,.p,.p,.p/bla.xsl to -> /bla.xsl

Stefan

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


alvaro at alobbs

Apr 16, 2008, 6:38 AM

Post #3 of 4 (281 views)
Permalink
Re: url rewrite [In reply to]

Hi Dorottya,

That would be something like this if you are using cherokee-admin:
Attachments: redirect.jpg (22.6 KB)


alvaro at gnu

Apr 16, 2008, 7:41 AM

Post #4 of 4 (285 views)
Permalink
Re: url rewrite [In reply to]

Hello Dorottya,

I suppose you are trying to access it from a remote machine, so the
problem would be that cherokee-admin binds only to local loopback.
There are two workarounds:

- Create a SSH tunnel. This is my preferred option. You would only
have to do: ssh -L 9090:localhost:9090 your_router_ip

- Launch cherokee-admin with the -a parameter in order to force it to
listen to all your network interfaces.

Besides, you could install cherokee on your desktop PC, configure it
there, and then copy the cherokee.conf file to the router; that would
be fair easy and painless as well.


On 16 Apr 2008, at 15:54, Dorottya Darvas wrote:
> thank you very much alo. my main problem is that i run cherokee-
> admin but cannot access the admin interface don't know why and how
> to fix it.
> i am using cherokee on an NSLU2 system (unslung). the page works
> fine (http://dornyika.com), but on port 9090 i get nothing.
>
> Dorottya Darvas
>
> On Wed, Apr 16, 2008 at 3:38 PM, Alvaro Lopez Ortega <alvaro[at]alobbs.com
> > wrote:
> Hi Dorottya,
>
> That would be something like this if you are using cherokee-admin:
>
>
>
>
>
>
> On 16 Apr 2008, at 00:59, Stefan de Konink wrote:
> On Wed, 16 Apr 2008, Dorottya Darvas wrote:
>
> i am trying to switch from lighttpd to cherokee 0.6. i needto
> rewrite an
> url, could you help me with that (how to do this)
> i'd like to have
> http://dornyika.com/blog
> instead of
> http://dornyika.com/cgi-bin/blosxom.cgi
>
> It must beable to do it from the admin, but I didn't do it from
> there yet.
>
> This is an example:
>
> vserver!default!request!^.+/([a-z]+).xsl$!priority = 21
> vserver!default!request!^.+/([a-z]+).xsl$!handler = redir
> vserver!default!request!^.+/([a-z]+).xsl$!handler!rewrite!1!
> substring =
> /$1.xsl
> vserver!default!request!^.+/([a-z]+).xsl$!handler!rewrite!1!show = 0
>
> so basically it will rewrite anything /,.p,.p,.p/bla.xsl to -> /
> bla.xsl
>
> Stefan
>
> _______________________________________________
> Cherokee mailing list
> Cherokee[at]cherokee-project.com
> http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
>
> --
> Greetings, alo.
> http://www.alobbs.com/
>
>
>
>
>
> --
> http://dornyika.com

--
Greetings, alo.
http://www.alobbs.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.