Here is the scnerio.
I have hosted some cgi-scripts on my web server and I want my web server to serve the script when I access just the URL
http://myhost.example.com/
I configured the virtual host directive as below.
<VirtualHost *:80>
ServerName myhost.example.com
ServerAlias myhost
DocumentRoot /home/arun/www/html
ScriptAlias / /home/arun/www/cgi-bin
DirectoryIndex index.py
</Directory "/home/arun/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Now, when I access the URL
http://myhost.example.com/index.py, it works. But when I try to access the URL
http://myhost.example.com/, the returning error "403 forbidden".
I guess DirectoryIndex works only with DocumentRoot and not with ScriptAlias. I could make it work by using ReWrite directive, but its again a work around I feel.
Appreciate any inputs on this regard.