LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-25-2004, 08:12 PM   #1
thebover
Member
 
Registered: Jul 2004
Location: Canada
Distribution: suse 9.1/knoppix/slackware
Posts: 60

Rep: Reputation: 15
Question changeing default document from index.html in apache


Does anyone know how to change the default document from index.html to index.php?

i did use to know but its been forever since i set up apache, thanks for your help
 
Old 08-25-2004, 08:27 PM   #2
thebover
Member
 
Registered: Jul 2004
Location: Canada
Distribution: suse 9.1/knoppix/slackware
Posts: 60

Original Poster
Rep: Reputation: 15
if i had only looked closer.


DirectoryIndex
 
Old 08-25-2004, 09:16 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
IIRC its in the httpd.conf that alows you to set what can and can not be the homepage. you can IIRC also set multiple extentions as the home/starting point for your web page.
 
Old 03-30-2005, 10:26 PM   #4
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
the setting is found /etc/httpd.conf
or /etc/apache/httpd.conf
or
/etc/http/httpd.conf


anyhow you can grep for it
grep -n "index.html" /path/to/your/httpd.conf
and it will tell you exactly where the entry is

sorry I don't have anymore details, I'm in transistion to my new system and do not have an example
httpd.conf on hand


when you do find it to change it (It will be pretty obvious)
the first entry get's highest priority

index.php index.phtml index.html

the server will look first for index.php then index.phtml, and so on.
 
  


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 2.0] can't get index.html to load fraggie Linux - Software 5 04-09-2005 06:55 AM
How to change the default index.html in Apache bngrhl Linux - Newbie 2 06-08-2004 02:47 PM
Apache won't default to index.html TexasDex Linux - Software 5 04-05-2004 09:33 AM
index.html renaming in Apache SSBN Linux - Networking 2 05-09-2003 08:57 PM
In apache, i want to set my default page to be index.html, or something thep Linux - Newbie 3 04-17-2001 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration