Category ‘Apache’

Styling Apache directory listings

Friday, 06.03.2009.

In this post you will find how to make stylish listing generated by the Apache server. This is not just another CSS solution. The trick is in configuring Apache to generate XML directory list and to use browser (IE, FF, Opera, Safari ...) to transform XML to the HTML. You will have full freedom to modify and style auto generated directory listings.

8 responses so far

Create XML from directory list with Apache

Saturday, 21.02.2009.

In Apache world, the index of a directory can come from one of two sources - a file written by the user, typically called index.html or a listing generated by the server. If you enable automatic index generation (with Options +Indexes), Apache will create a HTML directory list for the URL without index page. With a few lines in httpd.conf, directory list can become a XML document.

No responses yet

Hide parent directory in Apache

Wednesday, 18.02.2009.

Apache can generate directory indexes, automatically, similar to the Unix ls command or the Win32 dir shell command. With default settings, parent directory will be displayed too. If you want to hide parent directory from the directory list, use IndexIgnore directive.

No responses yet