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

Mailing List Archive: Cherokee: users

Redirection Handler with Concrete5 CMS

 

 

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


okhayat at yahoo

Oct 6, 2009, 11:15 PM

Post #1 of 13 (970 views)
Permalink
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
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at walterebert

Oct 6, 2009, 11:38 PM

Post #2 of 13 (923 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

Hi Ossama,

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

Good luck,
Walter

On Tue, 2009-10-06 at 23:15 -0700, Ossama Khayat wrote:
> 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
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


okhayat at yahoo

Oct 7, 2009, 12:39 AM

Post #3 of 13 (928 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

--- On Wed, 10/7/09, Walter Ebert <lists [at] walterebert> wrote:
> From: Walter Ebert <lists [at] walterebert>
> 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
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


aperez at skarcha

Oct 7, 2009, 12:43 AM

Post #4 of 13 (927 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

Hello,

On Wed, Oct 7, 2009 at 9:39 AM, Ossama Khayat <okhayat [at] yahoo> 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
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at walterebert

Oct 7, 2009, 2:25 AM

Post #5 of 13 (928 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

On Wed, 2009-10-07 at 00:39 -0700, Ossama Khayat wrote:
> --- On Wed, 10/7/09, Walter Ebert <lists [at] walterebert> wrote:
> > From: Walter Ebert <lists [at] walterebert>
> > 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
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


taher at unixwars

Oct 9, 2009, 10:41 AM

Post #6 of 13 (909 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

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.

Ossama Khayat wrote:
> --- On Wed, 10/7/09, Walter Ebert <lists [at] walterebert> wrote:
>
>> From: Walter Ebert <lists [at] walterebert>
>> 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
>

--
taher [at] unixwars
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


gwolf at gwolf

Oct 13, 2009, 11:33 AM

Post #7 of 13 (894 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

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 • gwolf [at] gwolf • (+52-55)5623-0154 / 1451-2244
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


taher at unixwars

Oct 13, 2009, 12:37 PM

Post #8 of 13 (893 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

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

Gunnar Wolf wrote:
> 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?
>
>


--
taher [at] unixwars
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


taher at unixwars

Oct 26, 2009, 12:00 PM

Post #9 of 13 (821 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

Marhaba Ossama!

Antonio Pérez wrote:
> Hello,
>
> On Wed, Oct 7, 2009 at 9:39 AM, Ossama Khayat <okhayat [at] yahoo> 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

--
taher [at] unixwars
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


okhayat at yahoo

Oct 26, 2009, 3:28 PM

Post #10 of 13 (823 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

--- On Mon, 10/26/09, Taher Shihadeh <taher [at] unixwars> wrote:
> From: Taher Shihadeh <taher [at] unixwars>
[...]
> 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
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


taher at unixwars

Oct 27, 2009, 5:36 AM

Post #11 of 13 (819 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

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

--
taher [at] unixwars
http://unixwars.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


okhayat at yahoo

Oct 27, 2009, 2:50 PM

Post #12 of 13 (816 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

----- Original Message ----
> From: Taher Shihadeh <taher [at] unixwars>
[...]
> 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
Attachments: cherokee.conf.zip (4.08 KB)


gwolf at gwolf

Oct 28, 2009, 12:06 PM

Post #13 of 13 (804 views)
Permalink
Re: Redirection Handler with Concrete5 CMS [In reply to]

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 • gwolf [at] gwolf • (+52-55)5623-0154 / 1451-2244
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

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


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.