LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2001, 07:41 AM   #1
joe_dejesus
LQ Newbie
 
Registered: Aug 2001
Posts: 27

Rep: Reputation: 15
Question Help with Apache & index.htm


I have a little issue that I cannot resolve. When I hit my website either by IP or DNS name instead of displaying the index.htm file It displays a file listing of the contents of www/html/

I have selected index.htm as the valid page types and removed all others just in case, but nothing helps..


Anyone?

For troubleshooting purpose heres the link:
http://hangar18.no-ip.com

Im running Redhat 7.1 (intel) with latest patches from redhat.

Thanks!
 
Old 08-29-2001, 08:23 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
After making changes to your httpd.conf file to specify index.htm as a valid index page.. did you stop and restart apache to maked the changes be affected?
 
Old 08-29-2001, 08:57 AM   #3
joe_dejesus
LQ Newbie
 
Registered: Aug 2001
Posts: 27

Original Poster
Rep: Reputation: 15
YES and I rebooted just to make sure a clean start.

Thanks
 
Old 08-29-2001, 09:05 AM   #4
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
Joe, Nice Family Pictures ...
 
Old 08-29-2001, 09:10 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
hey if you can, post your httpd.conf file here, maybe something your missing or something someone here can check out.
 
Old 08-29-2001, 10:35 AM   #6
joe_dejesus
LQ Newbie
 
Registered: Aug 2001
Posts: 27

Original Poster
Rep: Reputation: 15
I need to fix the links, they still point to mindspring where page was originally hosted... Thanks for the nice comments. That file would not post here in complete form.


Get file from my server here:

ftp://hangar18.no-ip.com/httpd.conf

Last edited by joe_dejesus; 08-29-2001 at 10:39 AM.
 
Old 08-29-2001, 10:51 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
hey your http.conf gets errors it doesn't exist and its not showing up on the base address..
 
Old 08-29-2001, 11:30 AM   #8
SensFan
Member
 
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67

Rep: Reputation: 15
This is my guess:

DirectoryIndex index.htm under or near

# Documents
DocumentRoot /var/www/html
UserDir public_html
IndexOptions FancyIndexing

rather than in the Virutal Host area, like:

# Documents
DocumentRoot /var/www/html
UserDir public_html
DirectoryIndex index.htm
IndexOptions FancyIndexing


I donno if that makes a difference or not, might be worth a shot, sorry I can't be of more help.
 
Old 08-29-2001, 12:44 PM   #9
joe_dejesus
LQ Newbie
 
Registered: Aug 2001
Posts: 27

Original Poster
Rep: Reputation: 15
Prob fixed look below..........

Last edited by joe_dejesus; 08-29-2001 at 01:20 PM.
 
Old 08-29-2001, 01:20 PM   #10
joe_dejesus
LQ Newbie
 
Registered: Aug 2001
Posts: 27

Original Poster
Rep: Reputation: 15
>># Documents
>>DocumentRoot /var/www/html
>>UserDir public_html
>>DirectoryIndex index.htm
>>IndexOptions FancyIndexing


SensFan: You are correct sir! That did it!

Great!!! I just added that line and stopped/restarted
apache...


Cool , Thanks Guys!
 
  


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
RedHat 7.2 server hacked and all $HOME/public_html/index.htm files replaced abesharp Linux - Security 5 12-09-2004 03:05 AM
index.htm doesn't open instead it show up merlin740 LinuxQuestions.org Member Success Stories 2 10-04-2004 12:08 PM
Cant access index.htm on my newly set up apache jo5eph Red Hat 4 03-15-2004 01:47 PM
Apache issue (Won't recognise index.htm) R4z0r Linux - Networking 1 09-21-2003 08:43 AM
Help with Apache & index.htm idev Linux - Networking 3 09-18-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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