On Mon, Sep 9, 2013 at 12:16 PM, <
meet...@gmail.com> wrote:
> Yes, but these directives are supported in the .htaccess file. I think there
> is a possibility to use this handler in the .htaccess file. For example, to
> add a variable is_htaccess yes:
>
> SetHandler perl-script
> PerlResponseHandler Plack::Handler::Apache2
> PerlSetVar psgi_app /home/user/vhosts/
test.org/app.psgi
> PerlSetVar is_htaccess yes
>
> and check in Plack::Handler::Apache2 this variable. If it is set to 'yes',
> $location equal to do '/'.
I didn't write this code in Plack::Handler::Apache2, but the logic
seems to me to be there because you *must* specify a <Location> of
some sort.
What's your .htaccess example with "is_htaccess" supposed to do when
you have two .htaccess files like that in:
$root/foo/.htaccess
$root/bar/.htaccess
Is the app supposed to serve up /foo/ and /bar/ for those two paths?
Should both serve up "/"? Something else.
I think this is the problem you're running into. You're trying to
serve the app up without specifying a location at all.
So why not just specify it?
> понедельник, 9 сентября 2013 г., 12:48:04 UTC+3 пользователь Ævar Arnfjörð
> Bjarmason написал:
>>
>> On Mon, Sep 9, 2013 at 11:01 AM, <
meet...@gmail.com> wrote:
>> > Hello!
>> > I use Apache + mod_perl 2 + Plack::Handler::Apache2 in .htaccess:
>> >
>> > SetHandler perl-script
>> > PerlResponseHandler Plack::Handler::Apache2
>> > PerlSetVar psgi_app /home/user/vhosts/
test.org/app.psgi
>> >
>> > and I get an error in apache log:
>> >
>> > Your request path is '/' and it doesn't match your Location(Match)
>> > '/home/user/vhosts/
test.org/'. This should be due to the configuration
>> > error. See perldoc Plack::Handler::Apache2 for details.
>>
>> Well, have you looked at that perldoc and checked out how your
>> configuration doesn't match the example given etc?
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "psgi-plack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
psgi-plack+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.