Directory Lists

How to configure X5 to show directory lists.

X5 lets you enable directory listings per directory by creating a file called ".httpdir" in the webpages directory you want to make listable. That file must be readable by the X5 process. The file's contents are not relevant. X5 does not search parent directories for this file, so if the file is not present for a particular child directory, it won't be listable even if the parent is. (This behaviour could be changed.)

To configure the style, create a file "/http.css" in your webpages root directory and override the styles that X5 uses for directory lists, which are:

/*  X5 base style sheet
    Copyright (c) 1991-2009 iMatix Corporation - www.imatix.com

    You can override these styles by creating and editing http.css in your
    webpages directory.  This CSS code is granted to the public domain.
 */

* {
    margin: 0;
    padding: 0;
}
BODY {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
    background-color: white;
}

#error_head {
    font-size: 160%;
    margin: 10pt;
    border-width: 0 0 1pt 0;
    border-style: dashed;
}

#error_text {
    font-size: 120%;
    margin: 10pt;
}

#footer {
    margin: 10pt;
    border-width: 1pt 0 0 0;
    border-style: dashed;
    top: 90%;
    position: absolute;
    font-size: 85%;
}

#dir_head {
    font-size: 160%;
    margin: 10pt;
    border-width: 0 0 1pt 0;
    border-style: dashed;
}
#dir_text {
    font-size: 110%;
    margin: 10pt;
}
#dir_main {
    margin-left: 30pt;
}
.dir_table {
    width: 80%;
}
.dir_row {
}
.dir_name {
    font-weight: bold;
}
.dir_size {
    text-align: right;
}
.dir_time {
    text-align: right;
}
A {
    color: blue;
    text-decoration: none;
}
A:hover {
    color: white;
    background-color: black;
}
Add a New Comment

Edit | Tags | Source | Print

Table of Contents

Virtual Hosting (04 May 2009 08:09)

Directory Lists (04 May 2009 07:38)

2.5 Patches (28 Apr 2009 11:45)

Access Logs (18 Feb 2009 13:44)

Feature Requests (18 Feb 2009 13:43)

Security and Access Control (18 Feb 2009 13:43)

Summary of Features (18 Feb 2009 13:42)