Editing Apache directory listing

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

Is there any way I can put something below the Apache directory listing please? (The page you see when an index hasn't been uploaded).

I am able to put something there using README.html but is there any way I can do it globally so it's applied to every single folder ?

Thanks,
Craig.
 
Well it said that when I set ReadmeName if I put a / at the beginning of the URL then it'll find that file from the document root, so I tested it using ReadmeName /include/README.html and when README.html was inserted into the include directory in the users account it did work.

So I tried doing this:
ReadmeName home/mainaccount/readme_global.html and then checking if it worked by going to a normal account, but it did not work :(

Craig.
 
Well, I also tried this:

ReadmeName /home/mainaccount/public_html/global_readme.html so that'll have all the permissions correct but that did not work either :(

M0KUJ1N said:
Which user's account?

Any users account, I just want there to be a global README.html that's shown on every single accounts directory listing.
 
Right, I did a little test and found this:

So I set the ReadmeName like this:
ReadmeName /home/mainaccount/public_html/readme_global.html and rebooted Apache but the readme still wasn't being shown globally.

So I made the folders /home/mainaccount/public_html/ in a normal user directory and uploaded readme_global.html in to that folder. The footer then appeared and it worked perfectly, so I'm not doing it right :(

--Edit--
So I tried it without the beginning slash as it said in the Apache page that I was linked to that if you start the dir with a slash then it'll look for that file within the document root meaning the folders would have to be made inside the users folder to make it work. I rebooted after I took the beginning slash out yet it still only worked if I made the folders in the user directory.

--Another edit--
So I tried again, this time using the URL ../mainaccount/public_html/readme_global.html instead. If that did work it'd only work for the main page of the account it wouldn't work for deeper directories. I tried anyway but it still didn't work :(

Craig.
 
Last edited:
Back
Top Bottom