Netware Webserver - 2 apache / 1 perl ?

This is Interesting: Free IT Magazines  
Home > Archive > Netware Webserver > May 2005 > 2 apache / 1 perl ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 2 apache / 1 perl ?
KeN Etter

2005-05-25, 5:45 pm

I have 2 instances of Apache running - each in their own address space
with their own IP on the same server. They are both configured to
point to my PERL installation because I need them both to run PERL
scripts. One of these sites uses all the PERL scripts. The second
one should only run a couple scripts. But I noticed that I can enter
the URL of any PERL script at the second site and it will run -
obviously.

The first site has the following three lines:
AddEnvVar PERL_ROOT sys:\perl\web
ScriptAlias /perl/ sys:/perl/web/
<Directory "sys:/perl/web">

So I created a directory called sys:\perl\web2 and moved the scripts
for the second site into it. I then modified the three lines in the
httpd.conf file of the second site to look like this:
AddEnvVar PERL_ROOT sys:\perl\web2
ScriptAlias /perl/ sys:/perl/web2/
<Directory "sys:/perl/web2">

But then the second site would not load. My guess is that the EnvVar
PERL_ROOT applies to the entire server rather than just that instance
of Apache.

So does anyone have any suggestions how I might limit script access
for the second site?

Thanks!
Ken

Novell....it does a server good!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com