Connecting Tech Pros Worldwide Forums | Help | Site Map

Browsing to directory doesn't open index.htm

Tarantulus's Avatar
Member
 
Join Date: May 2007
Posts: 103
#1: Aug 21 '09
hi guys,

this is probably a stupid question, but can anyone explain to me why when I navigate to www.mydomain.com it doesn't open the index.html file?

I have the following directive in my httpd.conf file:
Expand|Select|Wrap|Line Numbers
  1. DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi index.htm
any ideas are appreciated as always

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,573
#2: Aug 21 '09

re: Browsing to directory doesn't open index.htm


Quote:

Originally Posted by Tarantulus View Post

hi guys,

this is probably a stupid question, but can anyone explain to me why when I navigate to www.mydomain.com it doesn't open the index.html file?

I have the following directive in my httpd.conf file:

Expand|Select|Wrap|Line Numbers
  1. DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi index.htm
any ideas are appreciated as always

First, what operating system are you using?
Tarantulus's Avatar
Member
 
Join Date: May 2007
Posts: 103
#3: Aug 21 '09

re: Browsing to directory doesn't open index.htm


Quote:

Originally Posted by numberwhun View Post

First, what operating system are you using?

DOH sorry, forgot that vital piece of info, it's solaris 9
Newbie
 
Join Date: Jan 2007
Location: coimbatore
Posts: 23
#4: Aug 24 '09

re: Browsing to directory doesn't open index.htm


hi!
Did you find any errors in logs in /var/log/error_log or access_log?
Newbie
 
Join Date: May 2007
Posts: 18
#5: Aug 24 '09

re: Browsing to directory doesn't open index.htm


That's actually a good question. I never really understood how this works did you try to see if the DirectoryIndex uses precedence. For example if you list index.html before index.htm would that work?
Newbie
 
Join Date: May 2007
Posts: 18
#6: Aug 24 '09

re: Browsing to directory doesn't open index.htm


http://wiki.apisnetworks.com/index.php/Apache

Take a look at this... it might help. Let us know if this actually solved your problem.
Tarantulus's Avatar
Member
 
Join Date: May 2007
Posts: 103
#7: Aug 25 '09

re: Browsing to directory doesn't open index.htm


it seems someone has been screwing with httpd.conf and now it won't start at all.
so I guess this is the least of my problems right now.
Reply


Similar Apache Web Server bytes