Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_pearl configuration- alias mixup

Status
Not open for further replies.

shantec

Technical User
Oct 20, 2002
29
TR
san,

we have configured mod_pearl,as you have said, and it makes a big difference.
But, on one domain i have 2 different applications , that use different cgi-bins.

when i enable the first cgi-bin as shown below, it also effects the second cgi-bin- as a result of the "alias" comment, since the server looks for the url with the cgi-bin in the alias directory.

my question is , how can , set it that, the alias doesn't effect the second cgi-bin

this is what i have at the moment
--------------------

Alias /books/cgi-bin /usr/internet/foo.com.com/htdocs/books/cgi-bin/
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader on
Options +ExecCGI
</Location>
------------------------------
butit also effects this directory.this directory, now looks for the cgi-bin in the previous location

/usr/internet/foo.com/htdocs/cgi-bin/flowers/
--------------
what should i do to leave this unaffected?

thank you
shann
 
try using locationmatch instead, for example:

<LocationMatch &quot;/books/cgi-bin/&quot;>

if there are more than one directory then
<LocationMatch &quot;/(books|ezines)/cgi-bin/&quot;>

so this will not match the second location.

---
cheers!
san
pipe.gif


&quot;The universe has been expanding, and Perl's kind of been expanding along with the universe&quot; - Larry Wall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top