>
>   class Debug < R '/debug-for-judofyr'
>    def get
>      [@env["PATH_INFO"], @env["SCRIPT_NAME"], R(Add)].inspect
>    end
>  end
>
> … explicitly set SCRIPT_NAME to empty, and then report the result you
> get at /debug-for-judofyr?
>


The wrong one:

["/debug-for-judofyr", "/debug-for-judofyr", "/add"]

The good one:

["/debug-for-judofyr", "", "/add"]


I have to apologize you, it's not a Camping bug.  It's an nginx one.


fastcgi_param SCRIPT_NAME $fastcgi_script_name;

pushes the wrong value into SCRIPT_NAME.  This is in an external
config file so I didn't realize it.  If I define SCRIPT_NAME as "/" or ""
in the main config, it overwrites the $fastcgi_script_name value, and
my app works fine. (With "/" as well as with "".)

u.
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to