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> |