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

Mailing List Archive: Cherokee: users

url behaviour

 

 

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


kuma_ym at hotmail

Oct 7, 2009, 5:36 AM

Post #1 of 4 (369 views)
Permalink
url behaviour

I've notticed Cherokee does not follow the apache behaviour while parsing URL.



In apache an URL such as http://www.mysite.com/doit.php/foo/joe/woo would fetch the file doit.php and if php enabled it would execute php code in it, that is that URL results in:



DOCUMENT_ROOT = /var/www/htdocs
SCRIPT_FILENAME = /var/www/htdocs/index.php
REQUEST_METHOD = GET
QUERY_STRING =
REQUEST_URI = /doit.php/foo/joe/woo

SCRIPT_NAME = /doit.php
PATH_INFO = /foo/joe/woo
PATH_TRANSLATED = /var/www/htdocs/foo/joe/woo



while Cherokee refuses to fetch the file and reports "file not found" error.



I suppose it is sure not a bug but a feature, but Would it be possible to mimic the apache behaviour since there're a lot of frameworks that trust on it for url rewriting or routing?

_________________________________________________________________
Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009


stefan at konink

Oct 7, 2009, 10:25 AM

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Masaru Yamabashi schreef:
> while Cherokee refuses to fetch the file and reports "file not found" error.

Can you explain how it should behave? Because I don't understand the
refuses to fetch the file. Do you mean doit.php is not found?


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkrMzwsACgkQYH1+F2Rqwn20qgCeOY3gNCIOIx24/TEifPxoSZU7
138AoIeWdSAHR07txW68i8+jhsAWIUDy
=ixK7
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at walterebert

Oct 8, 2009, 1:05 AM

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

Hello Masaru,

In my experience Cherokee does fetch the php file.

Does it find the php file if you only request
http://www.mysite.com/doit.php ?

What version of Cherokee are you using?

Kind regards,
Walter

On Wed, 2009-10-07 at 14:36 +0200, Masaru Yamabashi wrote:
> I've notticed Cherokee does not follow the apache behaviour while
> parsing URL.
>
> In apache an URL such as http://www.mysite.com/doit.php/foo/joe/woo
> would fetch the file doit.php and if php enabled it would execute php
> code in it, that is that URL results in:
>
> DOCUMENT_ROOT = /var/www/htdocs
> SCRIPT_FILENAME = /var/www/htdocs/index.php
> REQUEST_METHOD = GET
> QUERY_STRING =
> REQUEST_URI = /doit.php/foo/joe/woo
> SCRIPT_NAME = /doit.php
> PATH_INFO = /foo/joe/woo
> PATH_TRANSLATED = /var/www/htdocs/foo/joe/woo
>
> while Cherokee refuses to fetch the file and reports "file not found"
> error.
>
> I suppose it is sure not a bug but a feature, but Would it be possible
> to mimic the apache behaviour since there're a lot of frameworks that
> trust on it for url rewriting or routing?
>
>
> ______________________________________________________________________
> Windows Live Hotmail: Your friends can get your Facebook updates,
> right from Hotmail®.
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee

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


aperez at skarcha

Oct 8, 2009, 1:12 AM

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

Hello,

On Wed, Oct 7, 2009 at 2:36 PM, Masaru Yamabashi <kuma_ym [at] hotmail> wrote:

> I've notticed Cherokee does not follow the apache behaviour while parsing
> URL.
>
> In apache an URL such as http://www.mysite.com/doit.php/foo/joe/woo would
> fetch the file doit.php and if php enabled it would execute php code in it,
> that is that URL results in:
>
> DOCUMENT_ROOT = /var/www/htdocs
> SCRIPT_FILENAME = /var/www/htdocs/index.php
> REQUEST_METHOD = GET
> QUERY_STRING =
> REQUEST_URI = /doit.php/foo/joe/woo
> SCRIPT_NAME = /doit.php
> PATH_INFO = /foo/joe/woo
> PATH_TRANSLATED = /var/www/htdocs/foo/joe/woo
>
> while Cherokee refuses to fetch the file and reports "file not found" error.

Did you create the "php rule"? If not, run the PHP Wizard [1].

Anyway, could you post what version of Cherokee are you using and/or
the cherokee.conf file?

[1] http://www.cherokee-project.com/doc/cookbook_php.html

--
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.