HTTP Dir listing

S2S-Robert

Verified User
Joined
Jun 24, 2003
Messages
415
Location
The Netherlands
When a index.html / index.htm or whatever is not available you get a "403 forbidden" error, but it is also possible to see the directory contents.

Some of my customers want to display a directory listing, and this used to be default. I don't know exactly if a DA update (with security in mind) defaulted this off, but I want it turned on for some domains.

How would I do this?
 
Or you could turn it on for everyone by editing the /usr/local/directadmin/data/templates/virtual_host* templates and running
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
:)
 
Remember to copy the template to the ./custom directory so that DA will use them, and they won't be overwritten when DirectAdmin is updated. (templates in the custom diretory overrule the ones in the templates dir.) :)

John
 
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

editing the virtual host files and putting them into the custom directory is not enough? do we have to run this? will this be overwritten during an update or after reboot etc?
 
Hello,

If you ever edit a template, yes you'll need to run that command to get DA to rewrite all the user.conf files with the new template. If you've copied the template you want to use to the custom directory, the custom template will be used and won't be overwritten anytime.

John
 
Back
Top