You are not logged in.

#1 2008-09-21 05:05:42

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Apache Newb question

Ok folks, working with a buddy of mine to setup apache on one of my vm servers.  I have apache and the website files in the appropriate directory, I can access the site by going to http://servername/index.htm , but when I browse to http://servername it goes to a listing of the files in the http directory on the server.  How do I get it to go right to index.htm?

Thanks again


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#2 2008-09-21 05:32:26

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Re: Apache Newb question

nevermind solved, redirect / index.htm


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#3 2008-09-21 08:42:25

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Apache Newb question

Hi ybotspawn,
you can use the DirectoryIndex directive in your config file:

DirectoryIndex index.html index.htm index.php ..

You need to enable mod_dir module.
I think it's better than redirect.

Offline

#4 2008-09-26 13:24:38

ybotspawn
Member
From: Oz
Registered: 2008-04-06
Posts: 140

Re: Apache Newb question

Thanks, got it solved though.  Luca, can I get your avatar as a img file?  I have some places that would be perfect for using it as a sticker smile


"As long as people are going to call you a lunatic anyway,
why not get the benefit of it? It liberates you from convention. "

Offline

#5 2008-09-26 13:41:09

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Apache Newb question

Hi ybotspawn,
sure you can!!

Offline

Board footer

Powered by FluxBB