RE: Cryptic errors -simple Apache::Registry script ??? (newbie)

2000-01-10 Thread Eric Cholet

> 
> Syntax error on line 941 of /usr/local/apache/conf/httpd.conf:
>  cannot occur within  section
> ../src/support/apachectl start: httpd could not be started
> 
> Here is the (only) difference between the failing config and the one
> currently on the live server.  This is in a  section:
> 
> 940,943c940,945
> <   
> < SetHandler  perl-script
> < PerlHandler Apache::Footer
> <   
> ---
> >   
> > 
> >   SetHandler  perl-script
> >   PerlHandler Apache::Footer
> > 
> >   
> 
> What seems to have confused me was that to repair the config I removed
> the  directive.  Sorry if this confused anyone else.

You can't have a FilesMatch section inside a Location section, it's
a contradiction. See http://www.apache.org/docs/mod/directive-dict.html#Context

--
Eric



RE: Cryptic errors -simple Apache::Registry script ??? (newbie)

2000-01-10 Thread G.W. Haywood

Hi there

On Mon, 10 Jan 2000, Eric Cholet wrote:

> > Apache 1.3.9 (with mod_perl 1.21/perl5.005_03) doesn't let me use a
> >  section in a  section.
> 
> Really? That's quite odd. What is the error message?

Looks like I was wrong about this.  Either my memory was playing
tricks on me, or it's different on my development server.  The former
is at least three orders of magnitude more likely than the latter.

I didn't want to try to restart my live server with a deliberately
broken config, so I duplicated it on my development server and got
this message output to stderr:

Syntax error on line 941 of /usr/local/apache/conf/httpd.conf:
 cannot occur within  section
../src/support/apachectl start: httpd could not be started

Here is the (only) difference between the failing config and the one
currently on the live server.  This is in a  section:

940,943c940,945
<   
< SetHandler  perl-script
< PerlHandler Apache::Footer
<   
---
>   
> 
>   SetHandler  perl-script
>   PerlHandler Apache::Footer
> 
>   

What seems to have confused me was that to repair the config I removed
the  directive.  Sorry if this confused anyone else.

73
Ged.



RE: Cryptic errors -simple Apache::Registry script ??? (newbie)

2000-01-10 Thread Eric Cholet

> 
> Hi there,
> 
> On Sun, 9 Jan 2000, John Walker wrote:
> 
> > This is in a virtual host section, could that be a problem?
> 
> Apache 1.3.9 (with mod_perl 1.21/perl5.005_03) doesn't let me use a
>  section in a  section.

Really? That's quite odd. What is the error message?

--
Eric



Re: Cryptic errors -simple Apache::Registry script ??? (newbie)

2000-01-10 Thread G.W. Haywood

Hi there,

On Sun, 9 Jan 2000, John Walker wrote:

> This is in a virtual host section, could that be a problem?

Apache 1.3.9 (with mod_perl 1.21/perl5.005_03) doesn't let me use a
 section in a  section.

73
Ged.