[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Is "PerlOptions +Parent" per directory or not?
From:       John Dunlap <john () lariat ! co>
Date:       2014-12-15 18:45:24
Message-ID: CAC5eUSvRFqAAAtOa-RXstBWJV6WsCyVLGZXJwi=qLaVrbnYiYA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I use it like this inside my VirtualHost declaration:
PerlOptions +Parent
PerlRequire /usr/local/lariat-03.02.xx/conf/qa/startup-qa-03.02.xx.pl

This allows me to use a different version of my code base and a different
startup.pl on a per virtual host basis. Without it, all of my virtual hosts
would operate off the exact same version of my code.

On Mon, Dec 15, 2014 at 10:54 AM, Thorsten Schöning <tschoening@am-soft.de>
wrote:
>
> Hello,
>
> according to the docs[1] "PerlOptions +Parent" is available per
> directory, the example even uses a "Location" block. But if I try
> that, I always get the following error:
>
> > Invalid per-directory PerlOption: Parent
>
> I tried that in the past years time and again with always the same
> result that it simply doesn't work, not in Location or Directory
> blocks, not in .htaccess, nowhere. Yesterday I even tried to dig in
> the mod_perl source code to have a look if I'm doing something wrong,
> but I ended up in modperl_options.c, where I don't understand who
> initially defines which option is per directory or per server.
>
> Additionally I searched the web of course and there are some
> comparable discussions, but with no solution and the documentation is
> still as it is.
>
> So, is the documentation simply wrong and someone needs to update it?
> If so, who do I need to talk to to get that changed once and for all?
>
> If +Parent should work per directory, any hints on what I'm doing
> wrong? There are no other messages in the Apache log and I'm simply
> copying the documented lines. Did any of you ever successfully used a
> per directory configuration like documented?
>
> The reason I'm asking is that I have a legacy web app which I would
> like to host in different versions under the same VirtualHost, but
> that doesn't work if the same Perl interpreter is used for various
> reasons.
>
> [1]: http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_
>
> Mit freundlichen Grüßen,
>
> Thorsten Schöning
>
> --
> Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
> AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
>
> Telefon...........05151-  9468- 55
> Fax...............05151-  9468- 88
> Mobil..............0178-8 9468- 04
>
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
>
>

-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*john@lariat.co <john@lariat.co>*

*Customer Service:*
877.268.6667
support@lariat.co

[Attachment #5 (text/html)]

<div dir="ltr">I use it like this inside my VirtualHost \
declaration:<div><div>PerlOptions +Parent</div><div>PerlRequire \
/usr/local/lariat-03.02.xx/conf/qa/<a \
href="http://startup-qa-03.02.xx.pl">startup-qa-03.02.xx.pl</a></div></div><div><br></div><div>This \
allows me to use a different version of my code base and a different <a \
href="http://startup.pl">startup.pl</a> on a per virtual host basis. Without it, all \
of my virtual hosts would operate off the exact same version of my \
code.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec \
15, 2014 at 10:54 AM, Thorsten Schöning <span dir="ltr">&lt;<a \
href="mailto:tschoening@am-soft.de" \
target="_blank">tschoening@am-soft.de</a>&gt;</span> wrote:<blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hello,<br> <br>
according to the docs[1] &quot;PerlOptions +Parent&quot; is available per<br>
directory, the example even uses a &quot;Location&quot; block. But if I try<br>
that, I always get the following error:<br>
<br>
&gt; Invalid per-directory PerlOption: Parent<br>
<br>
I tried that in the past years time and again with always the same<br>
result that it simply doesn&#39;t work, not in Location or Directory<br>
blocks, not in .htaccess, nowhere. Yesterday I even tried to dig in<br>
the mod_perl source code to have a look if I&#39;m doing something wrong,<br>
but I ended up in modperl_options.c, where I don&#39;t understand who<br>
initially defines which option is per directory or per server.<br>
<br>
Additionally I searched the web of course and there are some<br>
comparable discussions, but with no solution and the documentation is<br>
still as it is.<br>
<br>
So, is the documentation simply wrong and someone needs to update it?<br>
If so, who do I need to talk to to get that changed once and for all?<br>
<br>
If +Parent should work per directory, any hints on what I&#39;m doing<br>
wrong? There are no other messages in the Apache log and I&#39;m simply<br>
copying the documented lines. Did any of you ever successfully used a<br>
per directory configuration like documented?<br>
<br>
The reason I&#39;m asking is that I have a legacy web app which I would<br>
like to host in different versions under the same VirtualHost, but<br>
that doesn&#39;t work if the same Perl interpreter is used for various<br>
reasons.<br>
<br>
[1]: <a href="http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_" \
target="_blank">http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_</a><br>
 <br>
Mit freundlichen Grüßen,<br>
<br>
Thorsten Schöning<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thorsten Schöning           E-Mail: Thorsten.Schoening@AM-SoFT.de<br>
AM-SoFT IT-Systeme         <a href="http://www.AM-SoFT.de/" \
target="_blank">http://www.AM-SoFT.de/</a><br> <br>
Telefon...........05151-   9468- 55<br>
Fax...............05151-   9468- 88<br>
Mobil..............0178-8 9468- 04<br>
<br>
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln<br>
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow<br>
<br>
</font></span></blockquote></div><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature"><div dir="ltr"><div \
style="font-size:small;font-family:arial"><span \
style="color:rgb(68,68,68);font-family:&#39;trebuchet \
ms&#39;,sans-serif;font-size:large">John Dunlap</span><br></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal">CTO |  \
</span><span style="font-family:tahoma,sans-serif;font-style:normal"><font \
color="#ff9900">Lariat</font></span><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal">  \
</span></i><br></div><div style="font-size:small;font-family:arial"><i \
style="font-family:&#39;trebuchet ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><br></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><b>Direct:</b></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><a \
href="mailto:john@lariat.co" style="color:rgb(17,85,204)" \
target="_blank">john@lariat.co</a></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><br><b>Customer \
Service:</b></span></i></div><div style="font-size:small;font-family:arial"><span \
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif"><a \
value="+18772686667" style="color:rgb(17,85,204)">877.268.6667</a></span></div><div \
style="font-size:small;font-family:arial"><span \
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif"><a \
href="mailto:support@lariat.co" style="color:rgb(17,85,204)" \
target="_blank">support@lariat.co</a></span></div><div \
style="font-size:small;font-family:arial"><img \
src="cid:ii_hwm90qu91_146b4d583171a8e6" width="100" height="60"></div></div></div> \
</div>

--089e013cbb2c402a99050a45a5cb--


["100x60.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic