* In order to prevent a directory listing, either
1. create a index.html file in the root of your web server documents (and/or subdirs)
touch index.html
2. modify httpd.conf and in
<Directory your-docs-path>
Options +Indexes ....
....
</Directory>
Ensure +Indexes is -Indexes
Options -Indexes ....
* Regarding the www.aaa.gov.org/bbb/ccc.ht
1. www.aaa.gov.org is not a VH
Ensure your DocumentRoot in httpd.conf is something like
DocumentRoot /myserverdir/asubdir/bbb
If you want ccc.html to be read as default :
either rename ccc.html as index.html or (without changing the default in httpd.conf, cleaner:) make a link in this dir to index.html
ln -s ccc.html index.html
2. www.aaa.gov.org is a virtualhost
Ensure your VH content is like
<VirtualHost *>
DocumentRoot /myserverdir/asubdir/bbb
ServerName www.aaa.gov.org
</VirtualHost>
Main Topics
Browse All Topics





by: owensleftfootPosted on 2004-04-15 at 15:37:00ID: 10837745
You need to edit the DocumentRoot directive in /etc/httpd.conf