[Cherokee] url behaviour

0 views
Skip to first unread message

Masaru Yamabashi

unread,
Oct 7, 2009, 8:36:10 AM10/7/09
to cher...@lists.octality.com
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®.

Stefan de Konink

unread,
Oct 7, 2009, 1:25:31 PM10/7/09
to Masaru Yamabashi, cher...@lists.octality.com
-----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
Cher...@lists.octality.com
http://lists.octality.com/listinfo/cherokee

Walter Ebert

unread,
Oct 8, 2009, 4:05:41 AM10/8/09
to Masaru Yamabashi, cher...@lists.octality.com
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

> ______________________________________________________________________


> Windows Live Hotmail: Your friends can get your Facebook updates,
> right from Hotmail®.

Antonio Pérez

unread,
Oct 8, 2009, 4:12:20 AM10/8/09
to Masaru Yamabashi, cher...@lists.octality.com
Hello,

On Wed, Oct 7, 2009 at 2:36 PM, Masaru Yamabashi <kum...@hotmail.com> 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

Reply all
Reply to author
Forward
0 new messages