[dancer-users] when running under Apache/mod_fastcgi

Henk van Oers hvo.pm at xs4all.nl
Sat Jun 8 12:34:30 BST 2013


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.)


More information about the dancer-users mailing list