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;
}
|
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)







I've read this and understand that you need to have a file called ".httpdir" in the folder that you want to allow directory lists BUT I'm running X5 on Windows XP SP3 and I still can't get directory lists to work. The .httpdir files were created by a simple "copy con .httpdir" and they really are there but they don't seem to have any effect.
I've used Xitami since the mid-90's but this is my first time on X5.