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

Mailing List Archive: Cherokee: users

Probllem with Handler: Redirection

 

 

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


platern at gmail

Feb 10, 2010, 8:04 AM

Post #1 of 6 (695 views)
Permalink
Probllem with Handler: Redirection

Hi to all!

My configuration:
FreeBSD 8.0-RELEASE jail
Cherokee Web Server 0.99.38

i try to migrate from Apache to Cherokee and can't create redirection rule.

cat .htaccess
...
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
...

In admin interface try to add behavior redirection:

Handler: redirection
Type Regular Expression Substitution
Internal ^(.*)$ index.php?q=$1

in browser i get this: 500 Internal Server Error

Need help :)

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


alvaro at octality

Feb 10, 2010, 8:18 AM

Post #2 of 6 (670 views)
Permalink
Re: Probllem with Handler: Redirection [In reply to]

On 10/02/2010, at 17:04, buddist wrote:

> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
>
> In admin interface try to add behavior redirection:
>
> Handler: redirection
> Type Regular Expression Substitution
> Internal ^(.*)$ index.php?q=$1

Use this instead: ^/(.*)$ /index.php?q=$1

--
Octality
http://www.octality.com/

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


platern at gmail

Feb 10, 2010, 8:22 AM

Post #3 of 6 (666 views)
Permalink
Re: Probllem with Handler: Redirection [In reply to]

Same error: 500 Internal Server Error

On Wed, Feb 10, 2010 at 7:18 PM, Alvaro Lopez Ortega
<alvaro [at] octality> wrote:
> On 10/02/2010, at 17:04, buddist wrote:
>
>> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
>>
>> In admin interface try to add behavior redirection:
>>
>> Handler: redirection
>> Type      Regular Expression  Substitution
>> Internal    ^(.*)$              index.php?q=$1
>
> Use this instead:    ^/(.*)$       /index.php?q=$1
>
> --
> Octality
> http://www.octality.com/
>
>



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


alvaro at octality

Feb 10, 2010, 8:25 AM

Post #4 of 6 (659 views)
Permalink
Re: Probllem with Handler: Redirection [In reply to]

On 10/02/2010, at 17:22, buddist wrote:
> On Wed, Feb 10, 2010 at 7:18 PM, Alvaro Lopez Ortega
> <alvaro [at] octality> wrote:
>> On 10/02/2010, at 17:04, buddist wrote:
>>
>>> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
>>>
>>> In admin interface try to add behavior redirection:
>>>
>>> Handler: redirection
>>> Type Regular Expression Substitution
>>> Internal ^(.*)$ index.php?q=$1
>>
>> Use this instead: ^/(.*)$ /index.php?q=$1
>
> Same error: 500 Internal Server Error

What's the rule match?
Can you post your configuration file (or at least the relevant snipped)?

--
Octality
http://www.octality.com/

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


platern at gmail

Feb 10, 2010, 11:44 AM

Post #5 of 6 (659 views)
Permalink
Re: Probllem with Handler: Redirection [In reply to]

my config:

vserver!80!collect_statistics = 0
vserver!80!collector!enabled = 1
vserver!80!directory_index = index.php
vserver!80!document_root = /usr/local/www/site/docs
vserver!80!error_handler = error_redir
vserver!80!error_handler!404!show = 0
vserver!80!error_handler!404!url = /index.php
vserver!80!error_writer!filename = /usr/local/www/site/logs/error.log
vserver!80!error_writer!type = file
vserver!80!keepalive = 1
vserver!80!logger = combined
vserver!80!logger!access!filename = /usr/local/www/site/logs/access.log
vserver!80!logger!access!type = file
vserver!80!logger!x_real_ip_access_all = 0
vserver!80!logger!x_real_ip_enabled = 0
vserver!80!match = wildcard
vserver!80!match!domain!1 = www.mobad.ru
vserver!80!nick = mobad.ru
vserver!80!rule!700!disabled = 1
vserver!80!rule!700!encoder!deflate = 0
vserver!80!rule!700!encoder!gzip = 0
vserver!80!rule!700!handler = proxy
vserver!80!rule!700!handler!balancer = round_robin
vserver!80!rule!700!handler!balancer!source!1 = 1
vserver!80!rule!700!handler!in_allow_keepalive = 1
vserver!80!rule!700!handler!in_preserve_host = 1
vserver!80!rule!700!handler!in_rewrite_request!1!regex = ^/xml_filters$
vserver!80!rule!700!handler!in_rewrite_request!1!substring =
/index.php?q=xml_filters
vserver!80!rule!700!handler!in_rewrite_request!2!regex = ^/xmlgate$
vserver!80!rule!700!handler!in_rewrite_request!2!substring =
/index.php?q=xmlgate
vserver!80!rule!700!handler!out_preserve_server = 1
vserver!80!rule!700!match = request
vserver!80!rule!700!match!final = 1
vserver!80!rule!700!match!request = ^/xml(.*)$
vserver!80!rule!700!no_log = 0
vserver!80!rule!700!only_secure = 0
vserver!80!rule!600!disabled = 1
vserver!80!rule!600!encoder!deflate = 0
vserver!80!rule!600!encoder!gzip = 0
vserver!80!rule!600!handler = proxy
vserver!80!rule!600!handler!balancer = round_robin
vserver!80!rule!600!handler!balancer!source!1 = 1
vserver!80!rule!600!handler!in_allow_keepalive = 1
vserver!80!rule!600!handler!in_preserve_host = 0
vserver!80!rule!600!handler!in_rewrite_request!1!regex = ^(.*)$
vserver!80!rule!600!handler!in_rewrite_request!1!substring = index.php?q=$1
vserver!80!rule!600!handler!out_preserve_server = 0
vserver!80!rule!600!handler!out_rewrite_request!1!regex = ^(.*)$
vserver!80!rule!600!handler!out_rewrite_request!1!substring = index.php?q=$1
vserver!80!rule!600!match = request
vserver!80!rule!600!match!final = 1
vserver!80!rule!600!match!request = redir
vserver!80!rule!600!no_log = 0
vserver!80!rule!600!only_secure = 0
vserver!80!rule!500!disabled = 1
vserver!80!rule!500!encoder!deflate = 0
vserver!80!rule!500!encoder!gzip = 0
vserver!80!rule!500!handler = redir
vserver!80!rule!500!handler!rewrite!1!regex = ^/(.*)$
vserver!80!rule!500!handler!rewrite!1!show = 0
vserver!80!rule!500!handler!rewrite!1!substring = /index.php?q=$1
vserver!80!rule!500!match = request
vserver!80!rule!500!match!final = 0
vserver!80!rule!500!match!request = ^/(.*)$
vserver!80!rule!500!no_log = 0
vserver!80!rule!500!only_secure = 0
vserver!80!rule!400!disabled = 0
vserver!80!rule!400!encoder!gzip = 1
vserver!80!rule!400!handler = fcgi
vserver!80!rule!400!handler!balancer = round_robin
vserver!80!rule!400!handler!balancer!source!1 = 1
vserver!80!rule!400!handler!error_handler = 1
vserver!80!rule!400!match = extensions
vserver!80!rule!400!match!extensions = php
vserver!80!rule!400!match!final = 0
vserver!80!rule!400!timeout = 30
vserver!80!rule!300!disabled = 0
vserver!80!rule!300!document_root = /usr/local/share/cherokee/themes
vserver!80!rule!300!handler = file
vserver!80!rule!300!match = directory
vserver!80!rule!300!match!directory = /cherokee_themes
vserver!80!rule!300!match!final = 1
vserver!80!rule!200!disabled = 0
vserver!80!rule!200!document_root = /usr/local/share/cherokee/icons
vserver!80!rule!200!handler = file
vserver!80!rule!200!match = directory
vserver!80!rule!200!match!directory = /icons
vserver!80!rule!200!match!final = 1
vserver!80!rule!100!disabled = 0
vserver!80!rule!100!encoder!deflate = 0
vserver!80!rule!100!encoder!gzip = 0
vserver!80!rule!100!handler = common
vserver!80!rule!100!handler!allow_dirlist = 0
vserver!80!rule!100!handler!allow_pathinfo = 0
vserver!80!rule!100!handler!backup = 0
vserver!80!rule!100!handler!date = 1
vserver!80!rule!100!handler!group = 0
vserver!80!rule!100!handler!hidden = 0
vserver!80!rule!100!handler!iocache = 1
vserver!80!rule!100!handler!redir_symlinks = 0
vserver!80!rule!100!handler!size = 1
vserver!80!rule!100!handler!symlinks = 1
vserver!80!rule!100!handler!theme = default
vserver!80!rule!100!handler!user = 0
vserver!80!rule!100!match = default
vserver!80!rule!100!match!final = 1
vserver!80!rule!100!no_log = 0
vserver!80!rule!100!only_secure = 0

On Wed, Feb 10, 2010 at 7:25 PM, Alvaro Lopez Ortega
<alvaro [at] octality> wrote:
> On 10/02/2010, at 17:22, buddist wrote:
>> On Wed, Feb 10, 2010 at 7:18 PM, Alvaro Lopez Ortega
>> <alvaro [at] octality> wrote:
>>> On 10/02/2010, at 17:04, buddist wrote:
>>>
>>>> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
>>>>
>>>> In admin interface try to add behavior redirection:
>>>>
>>>> Handler: redirection
>>>> Type      Regular Expression  Substitution
>>>> Internal    ^(.*)$              index.php?q=$1
>>>
>>> Use this instead:    ^/(.*)$       /index.php?q=$1
>>
>> Same error: 500 Internal Server Error
>
> What's the rule match?
> Can you post your configuration file (or at least the relevant snipped)?
>
> --
> Octality
> http://www.octality.com/
>
>



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


aperez at skarcha

Feb 12, 2010, 12:07 AM

Post #6 of 6 (660 views)
Permalink
Re: Probllem with Handler: Redirection [In reply to]

Hello!

On Wed, Feb 10, 2010 at 8:44 PM, buddist <platern [at] gmail> wrote:

> vserver!80!rule!500!disabled = 1

This rule is disabled, I guess you did the test with it enabled.

> vserver!80!rule!500!encoder!deflate = 0
> vserver!80!rule!500!encoder!gzip = 0
> vserver!80!rule!500!handler = redir
> vserver!80!rule!500!handler!rewrite!1!regex = ^/(.*)$
> vserver!80!rule!500!handler!rewrite!1!show = 0
> vserver!80!rule!500!handler!rewrite!1!substring = /index.php?q=$1
> vserver!80!rule!500!match = request
> vserver!80!rule!500!match!final = 0

And is marked as non-final. It should be marked as final.

Try with these changes... :)

--
Saludos:
Antonio Pérez
_______________________________________________
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.