Re: Apache and Perl with Virtual Host [OT]

2002-03-23 Thread Ged Haywood

Hi again,

Oh, rats, I'm sorry, I shouldn't have sent that.  I'm not sure that
it's your 'Options' settings at all.  Have you got the right execute
permisions on the directories/files that you're trying to get Apache
to search and/or execute?  Have you got anything in the error_log?

By way of further apology, if you'd care to reply to me privately
we'll get it running for you off-list as it's not a mod_perl issue.

73,
Ged.

--

On Sat, 23 Mar 2002, Ged Haywood wrote:

> Hi there,
> 
> On Fri, 22 Mar 2002, Matt Phelps wrote:
> 
> [snip,snip]
> > Okay, this is still giving me problems. Here is my config. I've
> > tried several things and still nothing. For some reason I can't get
> > cgi scripts to run under any virtual webs, but the default web.
> 
> What's a 'web'?  I think you mean 'host'.  (It helps if we all speak
> the same language, especially if we are using a search engine... :)
> 
> > I do have mod_perl installed.
> 
> Oh, all right then... :)
> 
> > I'm sure it's got to be something so simple.
> 
> I think it's called 'reading the documentation'... :)
> 
> > 
> > DocumentRoot /var/www/html
> > ServerName www2.zeetec.net
> > Options +ExecCGI
> > Alias /host/ /webhome/host/
> > Alias /cgi-bin/ /var/www/cgi-bin/
> > ScriptAlias /cgi-bin/ /var/www/cgi-bin
> > 
> > SetHandler perl-script
> > PerlHandler Apache::Registry
> > PerlSendHeader On   
> > Options +ExecCGI
> > 
> > 
> > AllowOverride None
> > Options None   <--- This removes 'ExecCGI' from your Options
> > Order allow,deny
> > Allow from all
> > 
> > 
> 
> Check the Apache docs about the behaviour of the 'Options' directive.
> 
> 73,
> Ged.
> 
> 




Re: Apache and Perl with Virtual Host

2002-03-22 Thread Ged Haywood

Hi there,

On Fri, 22 Mar 2002, Matt Phelps wrote:

[snip,snip]
> Okay, this is still giving me problems. Here is my config. I've
> tried several things and still nothing. For some reason I can't get
> cgi scripts to run under any virtual webs, but the default web.

What's a 'web'?  I think you mean 'host'.  (It helps if we all speak
the same language, especially if we are using a search engine... :)

> I do have mod_perl installed.

Oh, all right then... :)

> I'm sure it's got to be something so simple.

I think it's called 'reading the documentation'... :)

> 
> DocumentRoot /var/www/html
> ServerName www2.zeetec.net
> Options +ExecCGI
> Alias /host/ /webhome/host/
> Alias /cgi-bin/ /var/www/cgi-bin/
> ScriptAlias /cgi-bin/ /var/www/cgi-bin
> 
> SetHandler perl-script
> PerlHandler Apache::Registry
> PerlSendHeader On   
> Options +ExecCGI
> 
> 
> AllowOverride None
> Options None   <--- This removes 'ExecCGI' from your Options
> Order allow,deny
> Allow from all
> 
> 

Check the Apache docs about the behaviour of the 'Options' directive.

73,
Ged.




Re: Apache and Perl with Virtual Host

2002-03-22 Thread Matt Phelps

Okay, this is still giving me problems. Here is my config. I've tried 
several things and still nothing. For some reason I can't get cgi 
scripts to run under any virtual webs, but the default web. I'm running 
RH 7.2 with apache 1.3.20. I do have mod_perl installed.  My other box 
with RH 6.0 with apache 1.3.14, the cgi-bins work fine under all the 
virtual webs. I've compared the two config files, but I haven't seen 
what would cause it. I'm sure it's got to be something so simple.





DocumentRoot /var/www/html
ServerName www2.zeetec.net
Options +ExecCGI
Alias /host/ /webhome/host/
Alias /cgi-bin/ /var/www/cgi-bin/
ScriptAlias /cgi-bin/ /var/www/cgi-bin

SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On   
Options +ExecCGI


AllowOverride None
Options None
Order allow,deny
Allow from all




Bill Marrs wrote:

> At 04:02 AM 3/14/2002, Matt Phelps wrote:
>
>> Forgive me if I'm posting to the wrong group. I"ve got apache 1.3.22 
>> running several virtual webs. I can get perl scripts to run under the 
>> default web but not in the others. All the webs point to the same 
>> script folder. If I try to run the script under a virtual web, all I 
>> get is text display. Any help would be great.
>
>
> Well, I use mod_perl with VituralHosts...  My config looks something 
> like:
>
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/tz/html
> ServerName gametz.com
> DirectoryIndex /perl/gametz.pl
> # The live area
> Alias /perl/ /home/tz/perl/
> 
>   AllowOverride  None
>   SetHandler perl-script
>   PerlHandler Apache::RegistryBB
>   PerlSendHeader On
>   Options+ExecCGI
> 
> 
>
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /projects/web/survey-central
> ServerName surveycentral.org
> DirectoryIndex /perl/survey.pl
>
> Alias /perl/ /projects/web/survey-central/perl/
> 
>   SetHandler perl-script
>   PerlHandlerApache::RegistryBB
>   PerlSendHeader On
>   Options+ExecCGI
> 
> 
>
>
>





Re: Apache and Perl with Virtual Host

2002-03-14 Thread Bill Marrs

At 04:02 AM 3/14/2002, Matt Phelps wrote:
>Forgive me if I'm posting to the wrong group. I"ve got apache 1.3.22 
>running several virtual webs. I can get perl scripts to run under the 
>default web but not in the others. All the webs point to the same script 
>folder. If I try to run the script under a virtual web, all I get is text 
>display. Any help would be great.

Well, I use mod_perl with VituralHosts...  My config looks something like:


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/tz/html
ServerName gametz.com
DirectoryIndex /perl/gametz.pl
# The live area
Alias /perl/ /home/tz/perl/

   AllowOverride  None
   SetHandler perl-script
   PerlHandler Apache::RegistryBB
   PerlSendHeader On
   Options+ExecCGI




ServerAdmin [EMAIL PROTECTED]
DocumentRoot /projects/web/survey-central
ServerName surveycentral.org
DirectoryIndex /perl/survey.pl

Alias /perl/ /projects/web/survey-central/perl/

   SetHandler perl-script
   PerlHandlerApache::RegistryBB
   PerlSendHeader On
   Options+ExecCGI







Apache and Perl with Virtual Host

2002-03-14 Thread Matt Phelps

Forgive me if I'm posting to the wrong group. I"ve got apache 1.3.22 
running several virtual webs. I can get perl scripts to run under the 
default web but not in the others. All the webs point to the same script 
folder. If I try to run the script under a virtual web, all I get is 
text display. Any help would be great.

Thanks

Matt