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... |
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/" |
thanks. i will test it soon!
|
All times are GMT -5. The time now is 01:47 AM. |