Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

wwwxxx0cm, www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download

Links

XODOX
Impressum

#1: Location directive in httpd.conf

Posted on 2006-09-21 22:44:49 by sajid khan

------=_Part_14246_29326154.1158871489657
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I asked the below question in apache user group as well, but with no answers

We have 2 location directives, one for all the requests (<Location /> ...
</Location>) and one for specific url <Location /someurl> </Location
/someurl>. We declare some variables using PerlSetVar inside those and read
from the perl scripts.

In Apache 1.3 , I am able to read the variable(decl using PerlSetVar )
inside <Location /someurl>, however in Apache 2.0, I am not able to read the
variable. Has the Location directive usage changed in apache 2.0 ?, Any help
is appreciated

Thanks

------=_Part_14246_29326154.1158871489657
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I asked the below question in apache user group as well, but with no answers<br><br>We have 2 location directives, one for all the requests (&lt;Location /&gt; ... &lt;/Location&gt;) and one for specific url &lt;Location /someurl&gt; &lt;/Location /someurl&gt;. We declare some variables using PerlSetVar inside those and read from the perl scripts.
<br><br>In Apache 1.3 , I am able to read the variable(decl using PerlSetVar ) inside &lt;Location /someurl&gt;, however in Apache 2.0, I am not able to read the variable. Has the Location directive usage changed in apache
2.0 ?, Any help is appreciated<br><br>Thanks<br>

------=_Part_14246_29326154.1158871489657--

Report this message

#2: Re: Location directive in httpd.conf

Posted on 2006-09-22 07:15:30 by Fred Moyer

On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote:
> I asked the below question in apache user group as well, but with no
> answers
>
> We have 2 location directives, one for all the requests (<Location />
> ... </Location>) and one for specific url <Location /someurl>
> </Location /someurl>. We declare some variables using PerlSetVar inside
> those and read from the perl scripts.
>
> In Apache 1.3 , I am able to read the variable(decl using PerlSetVar )
> inside <Location /someurl>, however in Apache 2.0, I am not able to
> read the variable. Has the Location directive usage changed in apache
> 2.0 ?, Any help is appreciated

What version of modperl and perl are you using, and what OS are you
using? IIRC the location directive usage has not changed. Are you
saying that in 2.0 PerlSetVar works properly for you in <Location />,
but not <Location /someurl>? If you could submit a snippet of your conf
that would help in resolving you issue.

Report this message

#3: Re: Location directive in httpd.conf

Posted on 2006-09-26 04:33:28 by sajid khan

------=_Part_39923_27365914.1159238008457
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Fred, below is sample configuration used

<Location /someurl>
SetHandler perl-script
PerlHandler Apache::Hello
PerlSetVar somevar 50
</Location>

Regarding your below question, the answer is yes
>>Are you
>>saying that in 2.0 PerlSetVar works properly for you in <Location />,
>>but not <Location /someurl>?

Please let me know if I am overlooking or missing anything, I am not able to
read the "somevar" from the handler in apache 2

Thanks



On 9/22/06, Fred Moyer <fred@taperfriendlymusic.org> wrote:
>
> On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote:
> > I asked the below question in apache user group as well, but with no
> > answers
> >
> > We have 2 location directives, one for all the requests (<Location />
> > ... </Location>) and one for specific url <Location /someurl>
> > </Location /someurl>. We declare some variables using PerlSetVar inside
> > those and read from the perl scripts.
> >
> > In Apache 1.3 , I am able to read the variable(decl using PerlSetVar )
> > inside <Location /someurl>, however in Apache 2.0, I am not able to
> > read the variable. Has the Location directive usage changed in apache
> > 2.0 ?, Any help is appreciated
>
> What version of modperl and perl are you using, and what OS are you
> using? IIRC the location directive usage has not changed. Are you
> saying that in 2.0 PerlSetVar works properly for you in <Location />,
> but not <Location /someurl>? If you could submit a snippet of your conf
> that would help in resolving you issue.
>

------=_Part_39923_27365914.1159238008457
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Fred, below is sample configuration used<br><br><span style="font-style: italic;">&lt;Location /someurl&gt;</span><br style="font-style: italic;"><span style="font-style: italic;">SetHandler perl-script</span><br style="font-style: italic;">
<span style="font-style: italic;">PerlHandler Apache::Hello</span><br style="font-style: italic;"><span style="font-style: italic;">PerlSetVar&nbsp;&nbsp; somevar 50</span><br style="font-style: italic;"><span style="font-style: italic;">
&lt;/Location&gt;</span><br><br>Regarding your below question, the answer is yes<br>&gt;&gt;Are you<br>&gt;&gt;saying that in 2.0 PerlSetVar works properly for you in &lt;Location /&gt;,<br>&gt;&gt;but not &lt;Location /someurl&gt;?&nbsp;
<br><br>Please let me know if I am overlooking or missing anything, I am not able to read the &quot;somevar&quot; from the handler in apache 2<br><br>Thanks<br><br><br><br><div><span class="gmail_quote">On 9/22/06, <b class="gmail_sendername">
Fred Moyer</b> &lt;<a href="mailto:fred@taperfriendlymusic.org">fred@taperfriendlymusic.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote:<br>&gt; I asked the below question in apache user group as well, but with no<br>&gt; answers<br>&gt;<br>&gt; We have 2 location directives, one for all the requests (&lt;Location /&gt;
<br>&gt; ... &lt;/Location&gt;) and one for specific url &lt;Location /someurl&gt;<br>&gt; &lt;/Location /someurl&gt;. We declare some variables using PerlSetVar inside<br>&gt; those and read from the perl scripts.<br>&gt;
<br>&gt; In Apache 1.3 , I am able to read the variable(decl using PerlSetVar )<br>&gt; inside &lt;Location /someurl&gt;, however in Apache 2.0, I am not able to<br>&gt; read the variable. Has the Location directive usage changed in apache
<br>&gt; 2.0 ?, Any help is appreciated<br><br>What version of modperl and perl are you using, and what OS are you<br>using?&nbsp;&nbsp;IIRC the location directive usage has not changed.&nbsp;&nbsp;Are you<br>saying that in 2.0 PerlSetVar works properly for you in &lt;Location /&gt;,
<br>but not &lt;Location /someurl&gt;?&nbsp;&nbsp;If you could submit a snippet of your conf<br>that would help in resolving you issue.<br></blockquote></div><br>

------=_Part_39923_27365914.1159238008457--

Report this message

#4: Re: Location directive in httpd.conf

Posted on 2006-09-26 06:58:52 by pgollucci

sajid khan wrote:
> Fred, below is sample configuration used
>
> <Location /someurl>
> SetHandler perl-script
> PerlHandler Apache::Hello
> PerlSetVar somevar 50
> </Location>
I'm almost sure this works correctly (but I could be wrong). Can you look at t/response/TestModperl/setupenv.pm
and see if your case is covered. I believe it is.

--
------------------------------------------------------------ ------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F

When I call your name, Girl, it starts to flame
Burning in my heart, Tearing it all apart..
No matter how I try My love I cannot hide....

Report this message