some of the will recognize this as mostly the same configuration posted in my last message. If you strip out the default handler, and access a file that does not exist, Cherokee returns a 500 message internally but nothing to the browser. If a file exists, one still gets a 500 error message.

        Directory / {
                Handler redir {
Rewrite "/(\d+)$" "http://www.inguide.com:1080/inst/photogallery/viewphoto?photoid=$1"; Rewrite "/(\d+)/cmts" "http://www.inguide.com:1080/viewcomments?photoid=$1"; Rewrite "/(\d+)/delete" "http://www.inguide.com:1080/inst/photogallery/admin?photoid=$1&method=delete";

                        }
                }

but if you add a handler file to the directory definition, you can access a file if it exists but if it doesn't, the log reports a 500 error but nothing to the browser.

         Directory / {
                Handler redir {
Rewrite "/(\d+)$" "http://www.inguide.com:1080/inst/photogallery/viewphoto?photoid=$1"; Rewrite "/(\d+)/cmts" "http://www.inguide.com:1080/viewcomments?photoid=$1"; Rewrite "/(\d+)/delete" "http://www.inguide.com:1080/inst/photogallery/admin?photoid=$1&method=delete";

                        }
                Handler file
                }
--
http://www.wired.com/wired/archive/13.03/view.html?pg=5

The result of the duopoly that currently defines "competition" is that
prices and service suck. We're the world's leader in Internet
technology - except that we're not.
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to