[dancer-users] when running under Apache/mod_fastcgi (was: Re: return_url => request->path [Dancer::Plugin::Auth::Extensible])

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


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

-- 
Henk


More information about the dancer-users mailing list