LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   simple configuration on SuSE apache: help (https://www.linuxquestions.org/questions/suse-opensuse-60/simple-configuration-on-suse-apache-help-490131/)

tzbishop 10-06-2006 05:23 PM

simple configuration on SuSE apache: help
 
hey guys..

My apache is working well on SuSE, but if I have no index.htm on a directory, for example, and I try to access localhost/dir it does not show the files that are in that directory. But if I put a index.htm file on dir it displays the page well.

The aim is to make an apache like we see in mirrors, that it only shows the files on a directory, but my apache is configured somewhere "if there's no index.htm, show an error to the user :P"

How could I change that configuration to one that if the user tries to access that directory which does not have an index.htm, his/her browser just show the files on the directory?

thanks in advance...

pljvaldez 10-06-2006 05:52 PM

In your apache config file, you need to make sure the directory has "Indexes" on the "Options" line. Something like this
Code:

DocumentRoot "/home/username/test/example.com/htdocs/"
<Directory "/home/username/test/example.com/htdocs/">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None

  Order allow,deny
  Allow from all
</Directory>


tzbishop 10-07-2006 10:02 AM

thanks. i will test it soon!


All times are GMT -5. The time now is 01:47 AM.