[dancer-users] when running under Apache/mod_fastcgi
Nick Knutov
mail at knutov.com
Sat Jun 8 12:07:57 BST 2013
Try to add
$ENV{SCRIPT_NAME} = '';
to dispatch.fcgi (it was in my next mail).
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.)
>
--
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130
More information about the dancer-users
mailing list