Can you make directory listings work with a templa


#1

Can you make the apache directory listing work with a basic html template? I’d like for the directory listing to display within a basic html page I build.

Is that possible?

Also, how can i add a template for the file not found error?


#2

I do not believe there’s any way for you to style Apache’s file lists, but you certinly could use php to make a list of files and style that.

As far as error pages go (404 and others) See this article in the wiki

–Matttail
art.googlies.net - personal website


#3

You can change the appearance of the directory listings to a certain extent. You can use your own header and footer and, with some CSS work, get some basic styling of the file/directory listing. See the mod_autoindex documentation for details.

For custom error pages, see the aforementioned wiki article and the ErrorDocument docs.


If you want useful replies, ask smart questions.