LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache index.html doesn't show up but index.php do (https://www.linuxquestions.org/questions/linux-server-73/apache-index-html-doesnt-show-up-but-index-php-do-616933/)

zoffmann 01-28-2008 02:49 PM

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:)

bigearsbilly 01-28-2008 03:13 PM

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>


zoffmann 01-28-2008 03:26 PM

there is a line with " DirectoryIndex index.html"

zoffmann 01-28-2008 03:45 PM

I think they (my hosting provider) have missed something

bigearsbilly 01-28-2008 03:48 PM

ahah, you'd better ask them then if it's not your machine.

zoffmann 01-28-2008 03:53 PM

thanks for your help, I will not bother you with this

:)


All times are GMT -5. The time now is 02:13 AM.