> 
> Syntax error on line 941 of /usr/local/apache/conf/httpd.conf:
> <FilesMatch> cannot occur within <Location> 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 <VirtualHost> section:
> 
> 940,943c940,945
> <   <FilesMatch "\.html$">
> <     SetHandler      perl-script
> <     PerlHandler     Apache::Footer
> <   </FilesMatch>
> ---
> >   <Location />
> >     <FilesMatch "\.html$">
> >       SetHandler      perl-script
> >       PerlHandler     Apache::Footer
> >     </FilesMatch>
> >   </Location>
> 
> What seems to have confused me was that to repair the config I removed
> the <Location> 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

Reply via email to