You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by js <js...@mitre.org> on 2003/08/25 19:26:37 UTC
Interpreting HTML
I have apache2 and mod_perl2 setup and running without any problems with .PL
files.
In apache2 I have my test directory setup like the following:
Alias /test/ C:/apache2/htdocs/
<Location /test/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
How do I stop .HTML files from being interpreted?
JS
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Patrick Galbraith <pa...@patg.net>.
Js,
instead of "Location", use "Files"
Alias /test/ C:/apache2/htdocs/
<FILES ~ "\.pl$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</FILES>
Hope this is the solution, or what you're looking for,
regards,
Patrick
js wrote:
> I have apache2 and mod_perl2 setup and running without any problems with .PL
> files.
>
> In apache2 I have my test directory setup like the following:
>
> Alias /test/ C:/apache2/htdocs/
> <Location /test/>
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
>
> How do I stop .HTML files from being interpreted?
>
> JS
>
>
>
>
>
--
----------------------
Patrick Galbraith
Senior Software Developer
patg@patg.net capttofu@slashdot.org
206.719.2461
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
RE: Interpreting HTML
Posted by Jeremy <js...@mitre.org>.
Thanks guys,
<Location ~ "/test/*.pl">
Worked like a charm!
I appreciate the help for a newbie!
JS
-----Original Message-----
From: Patrick Galbraith [mailto:patg@patg.net]
Sent: Monday, August 25, 2003 6:22 PM
To: Josh Chamas
Cc: js; modperl@perl.apache.org
Subject: Re: Interpreting HTML
Hey, I just noticed the first email that you sent, I must've thought it
was a question - I must really need sleep since I've been mispelling and
reading incorrectly today ;) Sorry for replying to it as though it was a
question.
Josh Chamas wrote:
> js wrote:
>
>> I have apache2 and mod_perl2 setup and running without any problems
>> with .PL
>> files.
>>
>> In apache2 I have my test directory setup like the following:
>>
>> Alias /test/ C:/apache2/htdocs/
>> <Location /test/>
>> SetHandler perl-script
>> PerlResponseHandler ModPerl::Registry
>> PerlOptions +ParseHeaders
>> Options +ExecCGI
>> </Location>
>>
> > How do I stop .HTML files from being interpreted?
> >
>
> You could always just match on .pl, like:
>
> <Location ~ "/test/*.pl">
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> For more on using <Location>, please see:
>
> http://httpd.apache.org/docs-2.0/mod/core.html#location
>
> Regards,
>
> Josh
> ________________________________________________________________
> Josh Chamas, Founder phone:925-552-0128
> Chamas Enterprises Inc. http://www.chamas.com
> NodeWorks Link Checker http://www.nodeworks.com
>
>
>
--
----------------------
Patrick Galbraith
Senior Software Developer
patg@patg.net capttofu@slashdot.org
206.719.2461
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Patrick Galbraith <pa...@patg.net>.
Hey, I just noticed the first email that you sent, I must've thought it
was a question - I must really need sleep since I've been mispelling and
reading incorrectly today ;) Sorry for replying to it as though it was a
question.
Josh Chamas wrote:
> js wrote:
>
>> I have apache2 and mod_perl2 setup and running without any problems
>> with .PL
>> files.
>>
>> In apache2 I have my test directory setup like the following:
>>
>> Alias /test/ C:/apache2/htdocs/
>> <Location /test/>
>> SetHandler perl-script
>> PerlResponseHandler ModPerl::Registry
>> PerlOptions +ParseHeaders
>> Options +ExecCGI
>> </Location>
>>
> > How do I stop .HTML files from being interpreted?
> >
>
> You could always just match on .pl, like:
>
> <Location ~ "/test/*.pl">
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> For more on using <Location>, please see:
>
> http://httpd.apache.org/docs-2.0/mod/core.html#location
>
> Regards,
>
> Josh
> ________________________________________________________________
> Josh Chamas, Founder phone:925-552-0128
> Chamas Enterprises Inc. http://www.chamas.com
> NodeWorks Link Checker http://www.nodeworks.com
>
>
>
--
----------------------
Patrick Galbraith
Senior Software Developer
patg@patg.net capttofu@slashdot.org
206.719.2461
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Patrick Galbraith <pa...@patg.net>.
yeah, I wasn't quite sure of it... I've been so busy, I never played
with it to see what it was capable of. Thanks for the pointer!
regards,
Patrick
Josh Chamas wrote:
> Patrick Galbraith wrote:
>
>> LocationMatch I think is what you want.
>>
>
> <Location ~ ...>
>
> and
>
> <LocationMatch ...>
>
> do the same thing. The trick is the ~ after the Location.
>
> Please see http://httpd.apache.org/docs-2.0/mod/core.html#location
> for more information.
>
> Regards,
>
> Josh
> ________________________________________________________________
> Josh Chamas, Founder phone:925-552-0128
> Chamas Enterprises Inc. http://www.chamas.com
> NodeWorks Link Checker http://www.nodeworks.com
>
>
>
--
----------------------
Patrick Galbraith
Senior Software Developer
patg@patg.net capttofu@slashdot.org
206.719.2461
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Josh Chamas <jo...@chamas.com>.
Patrick Galbraith wrote:
> LocationMatch I think is what you want.
>
<Location ~ ...>
and
<LocationMatch ...>
do the same thing. The trick is the ~ after the Location.
Please see http://httpd.apache.org/docs-2.0/mod/core.html#location
for more information.
Regards,
Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checker http://www.nodeworks.com
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Patrick Galbraith <pa...@patg.net>.
LocationMatch I think is what you want.
Josh Chamas wrote:
> js wrote:
>
>> I have apache2 and mod_perl2 setup and running without any problems
>> with .PL
>> files.
>>
>> In apache2 I have my test directory setup like the following:
>>
>> Alias /test/ C:/apache2/htdocs/
>> <Location /test/>
>> SetHandler perl-script
>> PerlResponseHandler ModPerl::Registry
>> PerlOptions +ParseHeaders
>> Options +ExecCGI
>> </Location>
>>
> > How do I stop .HTML files from being interpreted?
> >
>
> You could always just match on .pl, like:
>
> <Location ~ "/test/*.pl">
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> For more on using <Location>, please see:
>
> http://httpd.apache.org/docs-2.0/mod/core.html#location
>
> Regards,
>
> Josh
> ________________________________________________________________
> Josh Chamas, Founder phone:925-552-0128
> Chamas Enterprises Inc. http://www.chamas.com
> NodeWorks Link Checker http://www.nodeworks.com
>
>
>
--
----------------------
Patrick Galbraith
Senior Software Developer
patg@patg.net capttofu@slashdot.org
206.719.2461
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Interpreting HTML
Posted by Josh Chamas <jo...@chamas.com>.
js wrote:
> I have apache2 and mod_perl2 setup and running without any problems with .PL
> files.
>
> In apache2 I have my test directory setup like the following:
>
> Alias /test/ C:/apache2/htdocs/
> <Location /test/>
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlOptions +ParseHeaders
> Options +ExecCGI
> </Location>
>
> How do I stop .HTML files from being interpreted?
>
You could always just match on .pl, like:
<Location ~ "/test/*.pl">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
For more on using <Location>, please see:
http://httpd.apache.org/docs-2.0/mod/core.html#location
Regards,
Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checker http://www.nodeworks.com
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html