[greenstone-users] Conf directives for existing Apache server (GSDL 2.83)

From Jim Hart
DateFri Apr 30 07:47:50 2010
Subject [greenstone-users] Conf directives for existing Apache server (GSDL 2.83)
In-Reply-To (BLU130-W26F594D03D10371DDB414AA9010-phx-gbl)
Dear Jayanta,

Because the virtual host has its document root in the greenstone
directory, the Alias isn't needed and the ScriptAlias doesn't need
Greenstone in front. This should do the job:

<VirtualHost 212.227.141.247:80>
ServerName archive.necef.in:80
ServerAlias www.archive.necef.in
DocumentRoot /usr/local/Greenstone
ScriptAlias /cgi-bin/ "/usr/local/Greenstone/cgi-bin/"
<Directory "/usr/local/Greenstone/cgi-bin">
Options None
AllowOverride None
</Directory>

<Directory "/usr/local/Greenstone">
# For security reasons, I prefer to not have directory listings
allowed - Jim Hart
# Options Indexes MultiViews FollowSymLinks
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Regards,

Jim Hart
Bates College
Lewiston, Maine, U.S.

On 4/29/10 3:07 PM, Jayanta B Sarma wrote:
> <VirtualHost 212.227.141.247:80>
> ServerName archive.necef.in:80
> ServerAlias www.archive.necef.in
> DocumentRoot /usr/local/Greenstone
> ScriptAlias /Greenstone/cgi-bin "/usr/local/Greenstone/cgi-bin"
> <Directory "/usr/local/Greenstone/cgi-bin">
> Options None
> AllowOverride None
> </Directory>
> Alias /Greenstone "/usr/local/Greenstone"
> <Directory "/usr/local/Greenstone">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>