LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-21-2007, 02:06 AM   #1
carobee
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
Unhappy changing the default page of apache


hi everyone

i stuck with a problem. im trying to change the default page of apache and trying to set a new one. for this i have even modified httpd.conf. i have changed the DirectoryIndex part in httpd.conf file, but without any results. on startup its still loading the same page of index.html. please help. i need to sort it out quickly
 
Old 11-21-2007, 03:42 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Hi and welcome to LQ.

What changes did you make to the DirectoryIndex section? If you just want to change the default page, backup the index.html in your htdocs directory and replace it with a different one.
 
Old 11-21-2007, 09:57 AM   #3
carobee
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
i wanted to make one login.php as default page, so i added login.php just ahead of index.html
 
Old 11-21-2007, 12:47 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Try renaming index.html to something like oldindex.html and restarting apache. If index.html is in the same directory as login.php, maybe its being loaded first.
 
Old 11-21-2007, 10:56 PM   #5
carobee
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
even i tried to inculde only login.php in DirectoryIndex and not index.html, without much success.login.php is in the same dir as index.html. but in httpd.conf i have tried without including any files except login.php. the command that i had written in httpd.conf was

DirectoryIndex login.php

How do i find out whats wrong?

Last edited by carobee; 11-21-2007 at 10:57 PM.
 
Old 11-22-2007, 02:32 AM   #6
carobee
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
the problem is atlast resolved. when i had just included login.php and restated the apache server, everything worked ok and i was able to get my desired page on starting apache server.
thanks anyway
 
  


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
Default Apache 2 Page linutzy Linux - Newbie 7 08-02-2005 08:18 PM
Apache default page dienerk Linux - General 4 10-22-2004 02:02 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
disable changing default home page tmz1 Linux - General 4 10-01-2003 04:44 PM
apache default page davee Linux - Newbie 6 02-17-2003 10:46 AM

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

All times are GMT -5. The time now is 04:53 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