LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2008, 02:49 PM   #1
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Rep: Reputation: 15
Question apache index.html doesn't show up but index.php do


hello,

as you see from title I have the problem that if I type:

www.mydomain.com

The page index.html can't open, and only that I see are the icons of the files and directories in the root direcotry of the domain.(apache list directory contents)

If I make an index.php file and type www.mydomain.com then index.php file works.

why is like that?

best regards
zoff
 
Old 01-28-2008, 03:13 PM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
look for this in your apache conf files, it is usually commented out.
uncomment and restart apachectl restart

Code:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html
</IfModule>
 
Old 01-28-2008, 03:26 PM   #3
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
there is a line with " DirectoryIndex index.html"
 
Old 01-28-2008, 03:45 PM   #4
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
I think they (my hosting provider) have missed something
 
Old 01-28-2008, 03:48 PM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
ahah, you'd better ask them then if it's not your machine.
 
Old 01-28-2008, 03:53 PM   #6
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
thanks for your help, I will not bother you with this

 
  


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
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 09:06 PM
Where to put index.php (or index.html) on Slackware 11.0 moonguide Slackware 3 05-08-2007 06:35 PM
[apache 2.0] can't get index.html to load fraggie Linux - Software 5 04-09-2005 05:55 AM
Apache problem - cannot get index.html file to show nebloof Linux - Software 3 01-15-2005 10:32 PM
Cant find apache index.html LinuxBlackBox Linux - Software 4 11-17-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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