List Info

Thread: cherokee shows 404 for !php files




cherokee shows 404 for !php files
user name
2006-09-28 21:22:54
Im having a hard time trying to get cherokee to "see" my non-php files

whenever y go to mysite.com/something.txt  cherokee throws 404 error eventhough the file is actually there

here is my conf

Directory / {
  Handler file
}

Request "^/([^?]*)(?(.*))?$" {
       ; Handler redir {
       ;         Rewrite "/index.php?q=$1&$3&;"
        }
}

....
More requests handlers.
....
Request "(.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$"; {
       ; Allow from localhost
}

Directory /modules { Handler file }
Directory /images  { Handler file }
Directory /files   { Handler file }
Directory /themes  { Handler file }
Directory /local   { Handler file }
Directory /misc ;   { Handler file }
Directory /img   ; { Handler file }

Directory /about {
       ; Handler server_info {
       ; JustAbout
  ;      }
}
Extension php {
       ; handler fcgi {
       ;         server localhost:8000 {
       ;           ;      Env PHP_FCGI_MAX_REQUESTS "-1"
 ;           ;           ; Env PHP_FCGI_CHILDREN     "20"
   ;           ;          Interpreter "/usr/lib/cgi-bin/php4 -b 127.0.0.1:8000"
           ;           ;  #Interpreter "/usr/bin/php5-cgi -b 127.0.0.1:8001"
           ;     }
       ; }
}


any ideas???

thanx
jordi
cherokee shows 404 for !php files
user name
2006-10-03 21:15:26
Hi Jordi!

> Im having a hard time trying to get cherokee to
"see" my non-php
> files
>
> whenever y go to mysite.com/something.txt
> <http://mysite.com
/something.txt> cherokee throws 404 error
> eventhough the file is actually there

  Just like a tip.. CHEROKEE_TRACE is your friend 

> here is my conf
>
> Directory / {
>   Handler file
> }
>
> Request "^/([^?]*)(?(.*))?$" {
>         Handler redir {
>                 Rewrite
"/index.php?q=$1&$3&"
>         }
> }

  The problem is here.. the request matches this regular
expression:

    reqs_list.c:0108 (cherokee_reqs_list_get): Request
"/p1.jpg"
                      matched
"^/([^?]*)(?(.*))?$", ovecsize=2

  so, it's redirecting the request to the wrong place:

    handler_redir.c:0240 (match_and_substitute): Hidden
redirect to:
                      request="/index.php"
query_string="q=p1.jpg&&"

  It's a mistake in the configuration. 

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
cherokee shows 404 for !php files
user name
2006-10-03 21:15:26
Hi Jordi!

> Im having a hard time trying to get cherokee to
"see" my non-php
> files
>
> whenever y go to mysite.com/something.txt
> <http://mysite.com
/something.txt> cherokee throws 404 error
> eventhough the file is actually there

  Just like a tip.. CHEROKEE_TRACE is your friend 

> here is my conf
>
> Directory / {
>   Handler file
> }
>
> Request "^/([^?]*)(?(.*))?$" {
>         Handler redir {
>                 Rewrite
"/index.php?q=$1&$3&"
>         }
> }

  The problem is here.. the request matches this regular
expression:

    reqs_list.c:0108 (cherokee_reqs_list_get): Request
"/p1.jpg"
                      matched
"^/([^?]*)(?(.*))?$", ovecsize=2

  so, it's redirecting the request to the wrong place:

    handler_redir.c:0240 (match_and_substitute): Hidden
redirect to:
                      request="/index.php"
query_string="q=p1.jpg&&"

  It's a mistake in the configuration. 

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )