Hi,
Until my webhost (ventraip.com.au) updated their software (this is many months ago, probably well over a year), I used to be able to customise directory listings exactly the same as when I used Apache. Now, that no-longer works properly (so Lightspeed is no-longer a "drop in replacement for Apache" since it doesn't behave the same), and they seem unable to do anything about this. I've wasted many hours of my time trying to get something working again that used to work, for a couple of decades, in Apache webservers.
Previously I uploaded HEADER.html and/or README.html files into directories to include some HTML content above and/or below the directory listing, and that HTML content was inserted into the page as expected. I could incorporate instructions into the page for people to follow, even write links. Now, the webserver is parsing that HTML and escaping all the less-then, greater-than, ampersands and quotes. So instead of rendered HTML, they see what looks like raw source code, all jumbled together in one huge lump.
This turns what I might have typed into my HEADER.html as:
<p>Check the <a href="change-log.html">change log</a> for recent updates.</p>
where they can read that and click on a link to what might be a page buried in a complex directory.
Into this incomprehensible, to anyone but a HTML author, mess:
&;ltp>Check the <a href="change-log.html">change log</a>
Which appears exactly like that garbage in the web browser, and is obviously no-longer a clickable link.
Even just putting plain text into one of those files is a mess. One line or two of text is readable, but no HTML links can be used, and if I wanted to write two paragraphs of text it will be just one huge block of unformattable text.
I was steered in the direction of trying to do it the LightSpeed way instead (which I don't want to have to to), with this info:
https://www.litespeedtech.com/suppo...nfig:autoindex#how_lsws_implements_auto_index
But that doesn't work either. No amount of putting "_autoindex" directories anywhere in my directory paths (inside or outside the public_html directory) allows me to put a PHP file in that could be used to create a custom directory listing page.
Bye,
Tim.
Until my webhost (ventraip.com.au) updated their software (this is many months ago, probably well over a year), I used to be able to customise directory listings exactly the same as when I used Apache. Now, that no-longer works properly (so Lightspeed is no-longer a "drop in replacement for Apache" since it doesn't behave the same), and they seem unable to do anything about this. I've wasted many hours of my time trying to get something working again that used to work, for a couple of decades, in Apache webservers.
Previously I uploaded HEADER.html and/or README.html files into directories to include some HTML content above and/or below the directory listing, and that HTML content was inserted into the page as expected. I could incorporate instructions into the page for people to follow, even write links. Now, the webserver is parsing that HTML and escaping all the less-then, greater-than, ampersands and quotes. So instead of rendered HTML, they see what looks like raw source code, all jumbled together in one huge lump.
This turns what I might have typed into my HEADER.html as:
<p>Check the <a href="change-log.html">change log</a> for recent updates.</p>
where they can read that and click on a link to what might be a page buried in a complex directory.
Into this incomprehensible, to anyone but a HTML author, mess:
&;ltp>Check the <a href="change-log.html">change log</a>
Which appears exactly like that garbage in the web browser, and is obviously no-longer a clickable link.
Even just putting plain text into one of those files is a mess. One line or two of text is readable, but no HTML links can be used, and if I wanted to write two paragraphs of text it will be just one huge block of unformattable text.
I was steered in the direction of trying to do it the LightSpeed way instead (which I don't want to have to to), with this info:
https://www.litespeedtech.com/suppo...nfig:autoindex#how_lsws_implements_auto_index
But that doesn't work either. No amount of putting "_autoindex" directories anywhere in my directory paths (inside or outside the public_html directory) allows me to put a PHP file in that could be used to create a custom directory listing page.
Bye,
Tim.