Change Apache default index.html page to something else

Issues related to applications and software problems
Post Reply
altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Change Apache default index.html page to something else

Post by altiris » 2015/05/27 22:48:47

Alright.....I have tried and tried. I want to make it so that the index.html file is NOT the default file that is presented when typing "www.mydomain.com". I have tried making a .htaccess file and putting "DirectoryIndex Default.htm" (Default.htm is the file I need to be default). I have tried editing the DirectoryIndex in httpd.conf ....I can't get it to work. What else is there for me to do?

altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Re: Change Apache default index.html page to something else

Post by altiris » 2015/05/27 23:45:27

Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: Change Apache default index.html page to something else

Post by Whoever » 2015/05/28 02:24:42

altiris wrote:Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.
You should edit (create if necessary) the files in /etc/httpd/conf.d instead of editing httpd.conf

altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Re: Change Apache default index.html page to something else

Post by altiris » 2015/05/28 16:23:17

Whoever wrote:
altiris wrote:Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.
You should edit (create if necessary) the files in /etc/httpd/conf.d instead of editing httpd.conf
What file would I have to create? There don't seem to be any files already made to change DirectoryIndex.

Post Reply