Uncategorized

Apache: Edit Listing Format

This is accomplished by adding some directives on the .htaccess.

The first step is to enable the .htaccess in your directory, this needs to be enables in

/etc/apache2/apache2.conf

 

CHANGE

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>

 

TO

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>

 

where <Directory /var/www/> is the directory where you want to enable de .htaccess.

 

Then you can see the description of the htaccess config

http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html

 

And a tutorial.

http://www.okayjacob.com/blog/web-talk/fancy-directory-listing-htaccess.html

Leave a Reply

Your email address will not be published. Required fields are marked *