LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-17-2005, 06:31 PM   #1
gsgleason
Member
 
Registered: Oct 2004
Posts: 69

Rep: Reputation: 15
changing the default file apache web server looks for


if navigating to http://server where server is my linux server's address running apache, it automatically loads index.html, if it exists. I'd like to change it to index.php.

I've gone through the httpd.conf and read as much as I can find, but havent' found the answer.

Can someone point me in the right direction?
 
Old 11-17-2005, 06:41 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
In your httpd.conf where it says:

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

Just put index.php after index.html. Mine looks like this.

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.shtm index.php
</IfModule>

In Slackware 10.2 it is line 441 in the httpd.conf.
 
Old 11-18-2005, 10:47 AM   #3
gsgleason
Member
 
Registered: Oct 2004
Posts: 69

Original Poster
Rep: Reputation: 15
Perfect! Thanks! I don't know why I didn't figure this out on my own...
 
Old 11-18-2005, 12:31 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
No problem
 
  


Reply



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 web - Vhosts not working?? Raggit Linux - Software 1 02-04-2005 02:34 PM
Changing default web browser BaltikaTroika Linux - Newbie 10 01-14-2005 04:40 PM
apache web server default page link tuxrules Linux - Newbie 9 07-10-2004 05:22 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
default file permissions for web server AZDAVE Linux - Security 3 11-13-2003 03:22 PM

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

All times are GMT -5. The time now is 08:44 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
Open Source Consulting | Domain Registration