View Full Version : HTTP Dir listing
S2S-Robert
10-19-2003, 11:14 AM
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?
DirectAdmin Support
10-19-2003, 02:30 PM
Hello,
create an .htaccess file with the following contents:
Options +IndexesJohn
l0rdphi1
10-20-2003, 02:27 PM
Or you could turn it on for everyone by editing the /usr/local/directadmin/data/templates/virtual_host* templates and running
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
:)
DirectAdmin Support
10-20-2003, 02:30 PM
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
l0rdphi1
10-20-2003, 03:22 PM
Yea.. my bad :o :D
S2S-Robert
10-21-2003, 04:40 AM
I'll stick to the .htaccess file ;)
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?
DirectAdmin Support
10-27-2003, 09:40 AM
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.