|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
index.htm (as opposed to .html)
hello all.
i have apache up and running on my free BSD box, and all is going well, but i would like to configure apache to recognize .htm files as well as .html files for the index. currently all index files have to be named .html otherwise it gives the user a full directory listing. i figured i needed to edit httpd.conf and i figure it has something to do with this: # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.html </IfModule> but i'm unsure of myself. am i headed the right direction? thanks -alligator |
|
#2
|
|||
|
|||
|
Using index.htm instead of index.html
Hi.
You are heading in the right direction with DirectoryIndex. This directive sets the default file to show. You might want to set it thus: DirectoryIndex index.htm index.html This will attempt to find a file named index.htm, and then, if that is unavailable, will look for index.html. You also need to ensure that the mod_dir module is included in your compile. Hope this help. EMM |
|
#3
|
|||
|
|||
|
did the trick. thankyou very much.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > index.htm (as opposed to .html) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|