LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-29-2004, 02:56 PM   #1
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
How to change default Apache page?


I have apache installed...but in order to access index.html, I need to go to

mydomain.com/index.html directly
rather than just
mydomain.com


how do I fix this?


-thamls
 
Old 11-29-2004, 03:00 PM   #2
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
What page do you get when you request mydomain.com?

Probably, the order of values for DirectoryIndex directive in httpd.conf can fix that.

Last edited by Not now, John!; 11-29-2004 at 03:05 PM.
 
Old 11-29-2004, 03:10 PM   #3
kinus
Member
 
Registered: Nov 2004
Location: South Africa
Distribution: Kubuntu 6.10, Fedora Core 6
Posts: 30

Rep: Reputation: 15
Ya, you need to change your httpd.conf file.

Look for the following entry

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

Make sure that it's uncommented and that both index.html and index.php exist (at least index.html if that's your index page).
If that entry doesn't exist then add it, restart apache and it should work.

Kinus
 
Old 11-29-2004, 06:31 PM   #4
flamesrock
Member
 
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
that worked! thanks. It was uncommented, but didn't have index.php, so I added it, restarted. and voila.

Not now, John!,
I was getting the apache default page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache default page dienerk Linux - General 4 10-22-2004 02:02 PM
change default error page for apache linuxtesting2 Linux - Networking 2 09-26-2004 08:38 AM
how to change apache default page yenonn Linux - Networking 3 08-17-2004 11:27 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM
Apache default page?? andy18 Linux - General 6 07-16-2003 03:57 AM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration