LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-20-2005, 08:52 AM   #1
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Rep: Reputation: 0
Apache does not open index.html


Hi everyone,

My problem is;
i've created an index.html file in my /var/www/html/myfolder folder, and i want to see it in //myipaddress/myfolder address. But it does not find the address, it gives Page Not Found error (also, in explorer, it states that it can not found my server). When I try //myipaddress/myfolder/index.html it's ok, I see what I should see. Also for information only, //myipaddress and Apache Test Page works.

Any idea?

Note: // means internet I don't know how to state it, this forum does not allow me to use this tag, it says it is a spam . So // means abbreviation of hyper text transfer protocol
 
Old 04-20-2005, 09:05 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Post your apache config file. Most likely, its not set to look for index.html by default. I forget what the exact line says that sets that option. It might be DirectoryIndex.
 
Old 04-20-2005, 09:30 AM   #3
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
It is a long one I can't post it here, but I here is my DirectoryIndex part:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.htm indes.shtml index.php index.php4 index.php3 index.phtml index.cgi

#

also I tried this:

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html
#

Nothing changed...
 
Old 04-20-2005, 11:49 AM   #4
yangying
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Rep: Reputation: 0
DocumentRoot "/var/www/html"
//for default,right?

is it coz of index.html is special?
http://ip/myfolder/index.html when you can see what you want

"index" here is just name of .html coz it is in /myfolder but not index with the meaning of it appears

maybe it's stupid and bad english
 
Old 04-20-2005, 03:00 PM   #5
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
Hmm, I will try to give an answer from what i've understand. Now I know that when you enter an address like www.webaddress.com/lala it should open the index.html file in the /var/www/html/lala folder. But mine doesn't do something like this, it can not find the www.webaddress.com/lala address although there is a folder named /var/www/html/lala and an index.html file in it.
 
Old 04-24-2005, 08:54 PM   #6
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Rep: Reputation: 15
For the some time I have been having the same problem, Apache would not find my index files unless I specifically went to that url //domain/index.html...

Your hint about the DirectoryIndex line helped... There was no content on that line in my conf file...

I added the file names to look for and it's working fine now...

Thanks a bunch!!!

WOOHOO!!!!
 
Old 04-25-2005, 12:49 PM   #7
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
Really happy that my writings helped someone. I'm happy for you , really... But mine still doesn't work and i still don't now where the problem is .

No idea from anyone?
 
Old 04-25-2005, 03:53 PM   #8
p41elvis
Member
 
Registered: Apr 2004
Location: Rotterdam
Distribution: Mandriva 2006 Community Edition
Posts: 62

Rep: Reputation: 15
What is your DocumentRoot set to?
 
Old 04-26-2005, 12:31 AM   #9
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Rep: Reputation: 15
And what permissions have you set on lala folder? It still needs to be made visible to the outside world...
 
Old 04-26-2005, 11:33 AM   #10
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
p41elvis,
What do you mean by that?

to ApachePadowan,
It's. Here is my ls -ald output:

drwxr-xr-x 2 root root 4096 Apr 21 12:22 lala/
 
Old 04-26-2005, 12:06 PM   #11
p41elvis
Member
 
Registered: Apr 2004
Location: Rotterdam
Distribution: Mandriva 2006 Community Edition
Posts: 62

Rep: Reputation: 15
Quote:
Originally posted by ekinox
p41elvis,
What do you mean by that?

to ApachePadowan,
It's. Here is my ls -ald output:

drwxr-xr-x 2 root root 4096 Apr 21 12:22 lala/
What I mean is: what did you set as "DocumentRoot" in you httpd.conf file.
This is how it can look:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
 
Old 04-26-2005, 03:33 PM   #12
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
Oh sorry, I am reading is as DocumentIndex , here is my conf. Everythink is OK I think...

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
 
Old 04-30-2005, 10:11 AM   #13
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Rep: Reputation: 15
Not to beat on a dead horse, but you ARE sure that DirectoryIndex has a list of index files to look for:

i.e.
DirectoryIndex index.htm index.html etc. etc. etc.

And that your file IS called index.html?

Sometimes the simplest thing is what causes the problem and we miss it because we don't think about the obvious...

Are you behind a router?
 
Old 04-30-2005, 02:30 PM   #14
ekinox
LQ Newbie
 
Registered: Apr 2005
Location: Turkey
Distribution: Fedora Core 3 and Suse 9.2 Pro mainly but trying others too...
Posts: 9

Original Poster
Rep: Reputation: 0
yes, my DirectoryIndex has these arguments,
yes my IS is called index.html
and yes I'm behind a router
 
Old 04-30-2005, 08:41 PM   #15
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Rep: Reputation: 15
Last question... Are you using the Apache config GUI or are you manually manipulating the .conf file?

There are two DirectoryIndex settings: one at the beginning of the .conf file, and one within the Virtual Host container (or at least that is how my conf is set up). Both of them need to have the arguments...

Also, is your ISP blocking port 80? Cuz if they are, noone will be able to see your page, and all this stress and agrevation will be for naught...
 
  


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
[apache 2.0] can't get index.html to load fraggie Linux - Software 5 04-09-2005 05:55 AM
apache is skipping index.html spicychicken Linux - Software 1 02-15-2005 01:25 AM
Apache won't default to index.html TexasDex Linux - Software 5 04-05-2004 08:33 AM
Cant find apache index.html LinuxBlackBox Linux - Software 4 11-17-2003 10:35 AM
index.html renaming in Apache SSBN Linux - Networking 2 05-09-2003 07:57 PM

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

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