I can reproduce the problem with an apache config as simple as

<VirtualHost *:80>
   DocumentRoot /usr/share/lh-webserver/www
   <Perl>
      $ENV{PLACK_ENV} = 'production';
      $ENV{MOJO_MODE} = 'deployment';
   </Perl>
   <Location /test>
      SetHandler          perl-script
      PerlResponseHandler Plack::Handler::Apache2
      PerlSetVar          psgi_app 
/home/lh/work/mojolicious/utf8url/script/test
   </Location>
</VirtualHost>


I run Apache 2.4.10. Btw, observe that in

http://foo/æøå

matched by

$r->get('/foo/#arg')->to('foo#arg');

the 'arg' become double encoded whereas in

http://foo?arg=æøå

the 'arg' is ok.

/LarsSoem

On Saturday, January 2, 2016 at 12:01:41 AM UTC+1, Helmut Wollmersdorfer 
wrote:
>
>
>
> Am Dienstag, 29. Dezember 2015 15:12:13 UTC+1 schrieb LarsSoem:
>>
>> I have the same problem with double encoded utf8 characters in url's when 
>> deplaying a Mojolicious app under Apache using "PerlResponseHandler 
>> Plack::Handler::Apache2". No problem with morbo or plackup.
>>
>>
> Please post your Apache-conf.
>
> Never had this problem on Debian.
>
> Here an example:
>
> <VirtualHost *:80>
>     DocumentRoot /var/www/cpancover.wollmersdorfer.org 
>
>     ServerName cpancover.wollmersdorfer.org 
>  
>     PerlOptions +Parent 
>
>     <Perl> 
>       $ENV{PLACK_ENV} = 'production'; 
>       $ENV{MOJO_HOME} = '/var/www/cpancover.wollmersdorfer.org'; 
>       $ENV{MOJO_MODE} = 'deployment'; 
>       $ENV{MOJO_RELOAD} = 1; 
>       $ENV{MOJO_LOG_LEVEL} = 'debug'; 
>       use lib ( "/var/www/cpancover.wollmersdorfer.org/lib"); 
>     </Perl> 
>
>     <Location /> 
>       Order allow,deny 
>       Allow from all 
>       SetHandler perl-script 
>       PerlHandler Plack::Handler::Apache2 
>       PerlSetVar psgi_app /var/www/
> cpancover.wollmersdorfer.org/script/wcpancover 
>     </Location>
>
> </VirtualHost>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to