On Sat, 8 Jun 2013, Nick Knutov wrote:

Try to add

$ENV{SCRIPT_NAME} = '';

to dispatch.fcgi (it was in my next mail).

I did that too, thank you.

Btw: Shouldn't be the default for non-plain-CGI
to delete the SCRIPT_NAME?


-- Henk


08.06.2013 16:48, Henk van Oers пишет:

On Tue, 4 Jun 2013, Nick Knutov wrote:

I think there is already my issue about it in github.
I'm using this solution:

hook 'before' => sub {
    # when running under Apache/mod_fastcgi
    request->{env}->{SCRIPT_NAME} = '';
    ...
};

I forgot to thank you for this.
I'm using this too now.

Changing "request->path" into "request->request_uri"
does it for me.

(But the SCRIPT_NAME wasn't completely gone.)
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to