Apache Index Files
Does anyone know how to change apache to allow directories to be browesable?
In an ideal situation I would allow browseing in /home/*/public_html/* and not in the root. I am using Mandrake 8.2 RC1 if that helps any. I tried netconf stuff but that messed up telnet and ftp login times. (There is another post about that somewhere around here) MIKE |
Go to apache.org.
There is a directive called Indexes that makes the files available for download. Also look into alias directive. Alais allows you to show /home/public/docs as /docs <Directory /home/public/docs Options Indexes </Directory> |
If you allow users to login then they should be able to browse anywhere they normally do unless you use chroot or DocumentRoot for a virtualuser.
If DocumentRoot is /home then they could browse in anything under /home It's not really a great idea to do this, you should definately be using https SSL before sending any passwords or anything. Theres a lot of info in the manual if you installed the apache-manual rpm If you make DocumentRoot /var/www/html or whatever the default is then you need to set another Virtualuser with the other DocumentRoot |
This is confusing me. I have been reading all over and it seems like there are many options to do things I don't really need to do. I just want to have directory listing if no index.* is present.
Like the page that says Index of / folder files ---- Served out by Apache 1.3.12 from 68.51.114.106 something like that. I would have thought there was just a switch in the conf file, but I can't find it. Maybe I am trying too hard. |
that should be the default behavior if no index file is present, thats what mine does.
|
Y ou'd like to think so, but mine apparently doesn't in RPM mode. In source install it did, but I wanted the RPM this time around on this install.
|
make sure this is ok...
LoadModule dir_module modules/mod_dir.so make sure you have this.. AddModule mod_dir.c and if you have this... <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.p hp3 index.phtml index.cgi </IfModule> try it like this #<IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.p hp3 index.phtml index.cgi #</IfModule> |
Hi, I appreciate the help I have been getting, but still nothing is working. This is horrible. I thought there was some sort of allow indexing switch or something, but I didn't get that to work either. Apache ticks me off sometimes. But thanks everyone.
:smash: |
All times are GMT -5. The time now is 04:54 AM. |