Allowing Directory Index

I'm trying to allow Directory Indexing in my /var/www/cgi-bin/ so when someone goes to my site example.com/cgi-bin index.cgi will come up without having to type it.

Thanks,
thomasbonhamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prunckleCommented:
If you're having trouble setting the filetype permissions you can always create an index.htm file with a redirect to index.cgi.....inelligant solution, but it's a workaround I've had to use on certain acaemic servers before...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
http:// thevpn.guruCommented:
Create an .htaccess file in your main directory (/var/www/html) or a subdirectory of your choice.  This file will control settings for the directory it is placed in , plus all subdirectories below it unless they have .htaccess files of their own.

Add this line to that file:

Options +Indexes

0
jcullinsCommented:
if you are running apache2 then you can check your /etc/apache/httpd.conf file for the following line

<IfModule dir_module>
   DirectoryIndex index.html index.htm
</IfModule>

Adding index.cgi behind the index.htm should cause apache to look for index.html if it doesn't find it, then it will look for index.htm, then if it doesn't find that, it will look for index.cgi ...

Hopefully that is what you are looking for.

Thanks
0
ravenplCommented:
jcullins is almost there. Just add the index.cgi at the end of list of those insexes - restart apache.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.