Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Redirection Handler with Concrete5 CMS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ossama Khayat  
View profile  
 More options Oct 7 2009, 2:15 am
From: Ossama Khayat <okha...@yahoo.com>
Date: Tue, 6 Oct 2009 23:15:22 -0700 (PDT)
Local: Wed, Oct 7 2009 2:15 am
Subject: [Cherokee] Redirection Handler with Concrete5 CMS
Hi,

I've been trying to use Redirection Handler with a local install of Concrete5 CMS (concrete5.org), which is a great CMS btw ;-)

The rule is a very simple one, main to remove the index.php from the URL.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /awqaf/

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

I used cherokee-admin and did the following steps:
1. Edit the default virtual host
2. Add a new 'directory' rule with the value /awqaf
3. Used the Redirection Handler
4. In the Rule List I have:
    + Type: Internal
    + Regular Expression: (\.+)$
    + Substitution: index.php/$1/

Saved and restarted, and now I get a 500 Internal Server Error. Here is the config file lines:

vserver!10!nick = default
vserver!10!rule!700!encoder!deflate = 0
vserver!10!rule!700!encoder!gzip = 0
vserver!10!rule!700!handler = redir
vserver!10!rule!700!handler!rewrite!1!regex = (\.+)$
vserver!10!rule!700!handler!rewrite!1!show = 0
vserver!10!rule!700!handler!rewrite!1!substring = index.php/$1/
vserver!10!rule!700!match = directory
vserver!10!rule!700!match!directory = /awqaf
vserver!10!rule!700!no_log = 0
vserver!10!rule!700!only_secure = 0

Using Cherokee 0.99.22 on Debian Squeeze (testing). I tested this with 0.99.24 without success.

The documentation example really isn't clear at all.

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Walter Ebert  
View profile  
 More options Oct 7 2009, 2:38 am
From: Walter Ebert <li...@walterebert.com>
Date: Wed, 07 Oct 2009 08:38:07 +0200
Local: Wed, Oct 7 2009 2:38 am
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Hi Ossama,

Take a look here:
http://blog.walterebert.com/using-pretty-urls-in-concrete5-with-cherokee

Good luck,
Walter

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ossama Khayat  
View profile  
 More options Oct 7 2009, 3:39 am
From: Ossama Khayat <okha...@yahoo.com>
Date: Wed, 7 Oct 2009 00:39:27 -0700 (PDT)
Local: Wed, Oct 7 2009 3:39 am
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
--- On Wed, 10/7/09, Walter Ebert <li...@walterebert.com> wrote:

> From: Walter Ebert <li...@walterebert.com>
> Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
> Hi Ossama,

> Take a look here:
> http://blog.walterebert.com/using-pretty-urls-in-concrete5-with-cherokee

Wonderful article. It worked for me. What I'm trying to do though is to apply the rule to a subdirectory using the default virtual host. Just like you place an .htaccess file within a directory and it is inherited by the subdirectory.
Also, it would be great if a Wizard is created for this. I had a look at the wizard files, and I'm trying to do one for Concrete5.

Thanks,
Ossama

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Antonio Pιrez  
View profile  
 More options Oct 7 2009, 3:43 am
From: Antonio Pιrez <ape...@skarcha.com>
Date: Wed, 7 Oct 2009 09:43:08 +0200
Local: Wed, Oct 7 2009 3:43 am
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Hello,

On Wed, Oct 7, 2009 at 9:39 AM, Ossama Khayat <okha...@yahoo.com> wrote:
>> Take a look here:
>> http://blog.walterebert.com/using-pretty-urls-in-concrete5-with-cherokee

> Wonderful article. It worked for me. What I'm trying to do though is to apply the rule to a subdirectory using the default virtual host. Just like you place an .htaccess file within a directory and it is inherited by the subdirectory.
> Also, it would be great if a Wizard is created for this. I had a look at the wizard files, and I'm trying to do one for Concrete5.

Yeah!, a Wizard would be great... go for it! ;-)

--
Saludos:
Antonio Pιrez
_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Walter Ebert  
View profile  
 More options Oct 7 2009, 5:25 am
From: Walter Ebert <li...@walterebert.com>
Date: Wed, 07 Oct 2009 11:25:44 +0200
Local: Wed, Oct 7 2009 5:25 am
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
On Wed, 2009-10-07 at 00:39 -0700, Ossama Khayat wrote:
> --- On Wed, 10/7/09, Walter Ebert <li...@walterebert.com> wrote:
> > From: Walter Ebert <li...@walterebert.com>
> > Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
> > Hi Ossama,

> > Take a look here:
> > http://blog.walterebert.com/using-pretty-urls-in-concrete5-with-cherokee

> Wonderful article. It worked for me. What I'm trying to do though is to apply the rule to a subdirectory using the default virtual host. Just like you place an .htaccess file within a directory and it is inherited by the subdirectory.
> Also, it would be great if a Wizard is created for this. I had a look at the wizard files, and I'm trying to do one for Concrete5.

For a subdirectory you can add a "Regular Expression" rule and set a
redirection handler. Something like:
Regular Expression: ^/concrete5/
Handler: Redirection: ^/concrete5/(.*)$ /concrete5/index.php/$1

And, of course, add the subdirectory to the other concrete5 rules.
Leaving the default at List & Send.

I haven't tried  creating a wizard yet.

Cheers,
Walter

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Taher Shihadeh  
View profile  
 More options Oct 9 2009, 1:41 pm
From: Taher Shihadeh <ta...@unixwars.com>
Date: Fri, 09 Oct 2009 19:41:12 +0200
Local: Fri, Oct 9 2009 1:41 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Te hard part is getting the configuration right. Believe me, I know.
I've just uploaded a dozen or so that should be shipped with 0.99.25.
If people posted their working cherokee.conf samples, most Wizards could
be coded in a breeze.

--
ta...@unixwars.com
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gunnar Wolf  
View profile  
 More options Oct 13 2009, 2:33 pm
From: Gunnar Wolf <gw...@gwolf.org>
Date: Tue, 13 Oct 2009 13:33:23 -0500
Local: Tues, Oct 13 2009 2:33 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Taher Shihadeh dijo [Fri, Oct 09, 2009 at 07:41:12PM +0200]:

> Te hard part is getting the configuration right. Believe me, I know.
> I've just uploaded a dozen or so that should be shipped with 0.99.25.
> If people posted their working cherokee.conf samples, most Wizards could
> be coded in a breeze.

Umh... Just thinking out loud: I think many similar issues could be
solved (or helped) by showing clueless users exactly what portions of
the configuration are generated by a particular screen/entry in
cherokee-admin.

Of course, there are _lots_ of possible ways to implement this, but
I'm sure it would:

• Increase the contributions you mention
• Increase the amount of "well, duh!" moments, where users find out
  obvious things they would have not find otherwise
• Make it easier to give support to users not understanding the whole
  working of the server

Before logging this as a bug^Wrequest for enhancement, what would you
think?

--
Gunnar Wolf • gw...@gwolf.org • (+52-55)5623-0154 / 1451-2244
_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Taher Shihadeh  
View profile  
 More options Oct 13 2009, 3:37 pm
From: Taher Shihadeh <ta...@unixwars.com>
Date: Tue, 13 Oct 2009 21:37:12 +0200
Local: Tues, Oct 13 2009 3:37 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Hi Gunnar :)

What would you suggest, popping-up the info with something like Growl?
(although it isn't really useful until it is saved on disk, since rule
priorities change on the fly).
Actually I think this would be useful for the expert users, not for the
clueless ones. Could you elaborate, please? :)

Regarding my previous message, I insist: any one wanting a wizard for a
favorite app is encouraged to send a working cherokee.conf ready for the
application. It *will* certainly boost that wizard up in the creation
queue ;-)

[1] http://growl.info/screenshots.php

--
ta...@unixwars.com
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Taher Shihadeh  
View profile  
 More options Oct 26 2009, 3:00 pm
From: Taher Shihadeh <ta...@unixwars.com>
Date: Mon, 26 Oct 2009 20:00:29 +0100
Local: Mon, Oct 26 2009 3:00 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Marhaba Ossama!

Antonio Pιrez wrote:
> Hello,

> On Wed, Oct 7, 2009 at 9:39 AM, Ossama Khayat <okha...@yahoo.com> wrote:

>>> Take a look here:
>>> http://blog.walterebert.com/using-pretty-urls-in-concrete5-with-cherokee

>> Wonderful article. It worked for me. What I'm trying to do though is to apply the rule to a subdirectory using the default virtual host. Just like you place an .htaccess file within a directory and it is inherited by the subdirectory.
>> Also, it would be great if a Wizard is created for this. I had a look at the wizard files, and I'm trying to do one for Concrete5.

> Yeah!, a Wizard would be great... go for it! ;-)

I was wondering if you had any luck, were still interested and/or needed
help with this.
In any case, I would really appreciate it if you could log a request for
enhancement in our bug track (http://bugs.cherokee-project.com), and
attach your working cherokee.conf to it. That way we won't loose track
of the issue, and someone could pick up the task of doing the wizard in
case you wouldn't finish it for whatever reason.

Regards,
Taher

--
ta...@unixwars.com
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ossama Khayat  
View profile  
 More options Oct 26 2009, 6:28 pm
From: Ossama Khayat <okha...@yahoo.com>
Date: Mon, 26 Oct 2009 15:28:12 -0700 (PDT)
Local: Mon, Oct 26 2009 6:28 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
--- On Mon, 10/26/09, Taher Shihadeh <ta...@unixwars.com> wrote:

> From: Taher Shihadeh <ta...@unixwars.com>
[...]
> Marhaba Ossama!

Ya hala beek!

[...]

> I was wondering if you had any luck, were still interested
> and/or needed help with this.
> In any case, I would really appreciate it if you could log
> a request for enhancement in our bug track (http://bugs.cherokee-project.com), and attach your
> working cherokee.conf to it. That way we won't loose track
> of the issue, and someone could pick up the task of doing
> the wizard in case you wouldn't finish it for whatever
> reason.

I was trying to compile 0.99.25 on Debian Testing today, but after finishing successfully it didn't start. Is there an easy way to build a .deb package for Debian, or if you can tell me what are the most suitable parameters to use with 'configure' to install and run it smoothly on Debian Testing.

Anyway, I'll give it another shot tomorrow and get back to you.

Thanks for the follow up.

regards,
Ossama

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Taher Shihadeh  
View profile  
 More options Oct 27 2009, 8:36 am
From: Taher Shihadeh <ta...@unixwars.com>
Date: Tue, 27 Oct 2009 13:36:11 +0100
Local: Tues, Oct 27 2009 8:36 am
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Ossama Khayat wrote:
> I was trying to compile 0.99.25 on Debian Testing today, but after finishing successfully it didn't start. Is there an easy way to build a .deb package for Debian, or if you can tell me what are the most suitable parameters to use with 'configure' to install and run it smoothly on Debian Testing.

I guess Gunnar and Leonel are the guys to go for this one ;-) Me, I just
use checkinstall from time to time (or not even that, which I'm sure
will be frowned upon by our local experts). Anyway, it is strange that
Cherokee is built but wouldn't run. Did you try to launch a
cherokee-worker by hand to see what's wrong (maybe even with
CHEROKEE_TRACE or using an alternative config file)?

> Anyway, I'll give it another shot tomorrow and get back to you.

Great :)
> Thanks for the follow up.

^afwan.

Regards,
Taher

--
ta...@unixwars.com
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ossama Khayat  
View profile  
 More options Oct 27 2009, 5:50 pm
From: Ossama Khayat <okha...@yahoo.com>
Date: Tue, 27 Oct 2009 14:50:51 -0700 (PDT)
Local: Tues, Oct 27 2009 5:50 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS

----- Original Message ----
> From: Taher Shihadeh <ta...@unixwars.com>
[...]
> I guess Gunnar and Leonel are the guys to go for this one ;-) Me, I just use
> checkinstall from time to time (or not even that, which I'm sure will be frowned
> upon by our local experts). Anyway, it is strange that Cherokee is built but
> wouldn't run. Did you try to launch a cherokee-worker by hand to see what's
> wrong (maybe even with CHEROKEE_TRACE or using an alternative config file)?

No worries. The first time I did ./configure I didn't specify any directory info (as in http://www.cherokee-project.com/doc/basics_installation_unix.html). Once done, it worked perfectly.

Regarding Concrete5, It's working very fast and using clean URLs. I create a virtual host 'concrete', added a 127.0.0.1 concrete to my /etc/hosts and it's working perfect. Attached is my config.

One thing though, I didn't know how to run it as a subdirectory in my 'Default' virtual server.

regards,
Ossama

  cherokee.conf.zip
5K Download

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gunnar Wolf  
View profile  
 More options Oct 28 2009, 3:06 pm
From: Gunnar Wolf <gw...@gwolf.org>
Date: Wed, 28 Oct 2009 13:06:50 -0600
Local: Wed, Oct 28 2009 3:06 pm
Subject: Re: [Cherokee] Redirection Handler with Concrete5 CMS
Ossama Khayat dijo [Mon, Oct 26, 2009 at 03:28:12PM -0700]:

> I was trying to compile 0.99.25 on Debian Testing today, but after
> finishing successfully it didn't start. Is there an easy way to
> build a .deb package for Debian, or if you can tell me what are the
> most suitable parameters to use with 'configure' to install and run
> it smoothly on Debian Testing.

> Anyway, I'll give it another shot tomorrow and get back to you.

Good news:

http://packages.debian.org/sid/cherokee

I uploaded it to Sid, still using the old-but-tried build method :-)
You can download the source package (the orig.tar.gz / .dsc / .diff.gz
linked from that page), and that should build cleanly on your Testing
system.

--
Gunnar Wolf • gw...@gwolf.org • (+52-55)5623-0154 / 1451-2244
_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »