Date: Thu, 29 Jul 1999 12:40:23 +0200 From: Eric Cholet <cholet@logilune.com> To: "'ndear@areti.net'" <ndear@areti.net>, "freebsd-isp@FreeBSD.ORG" <freebsd-isp@FreeBSD.ORG> Subject: RE: Apache on FreeBSD. Message-ID: <01BED9BF.878B8040.cholet@logilune.com>
next in thread | raw e-mail | index | archive | help
On Thursday, July 29, 1999 12:27 PM, Nicholas J. Dear [SMTP:ndear@areti.net] wrote: > Apologies if this isn't directly related to FreeBSD (the machine runs it, but I > don't suppose that makes much difference). > > I'm trying to turn off directory listing functionality for one virtual host in > httpd.conf. The apache site appears to recommend something using the > <Directory> tags, but I get (below) this when I configtest it. You turn off directory listings by turning off the "Indexes" option, e.g. Options -Indexes see http://www.apache.org/docs/mod/core.html#options > <VirtualHost 194.207.26.225> > ServerName www.blah.co.uk > ServerAdmin mark@blah.co.uk > DocumentRoot /usr/home/longmire/public_html > ScriptAlias /cgi-bin/ /usr/home/longmire/cgi-bin/ > ErrorLog /usr/local/apache/logs/www.longmire.co.uk/error_log > <Directory /usr/home/longmire/public_html> Options FollowSymLinks > </Directory> > </VirtualHost> > > su-2.02# ./apachectl configtest > Syntax error on line 1979 of /usr/local/apache/conf/httpd.conf: > ScriptAlias not allowed here ScriptAlias can't be used in a <directory> section, see http://www.apache.org/docs/mod/mod_alias.html#scriptalias > > Any ideas? :) > N. > -- > Nicholas J. Dear > Mail: ndear@areti.net Tel: +44 (0)208-402-4041 > Areti Internet Ltd., http://www.areti.co.uk/ > -- Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BED9BF.878B8040.cholet>