Posts Tagged ‘apache’

How to enable directory listing in apache

Friday, January 15th, 2010

I created a new domain for pc-freak’s exploit collection
I faced a small issue in creating the new VirtualHost to have a proper directory
listing, cause by default directory listing on my FreeBSD running Apache 2.0.63
is disabled.
It’s quite a common problem I’ve faced over the years of administration of
Apache Servers, everyting I had to enable directory listing for some domain
I had to check in Google again and again. I have to admit this is pretty boring.
Thus I decided to post the solution on my blog just in case if I have to enable
directory listing in the future. Here is the exact configuration directives:
ServerAdmin someemail@somehost.com DocumentRoot /util/exploitworld/ ServerName someservername.com AddDefaultCharset Off Options Indexes FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from allThat’s it directory listing for someservername.com is already enabled. Cheers 🙂

Enabling .cgi scripts to execute whenever invoked in Apache

Friday, January 15th, 2010

I wanted to enable .cgi execution on my apache server.
I wanted to set a custom .cgi script to execute as a DirectoryIndex
In order to achieve that I had to add the following to my VirtualHost directive
AddHandler cgi-script .cgi .pl