LinuxQuestions.org
Help answer threads with 0 replies.
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 07-11-2003, 09:47 AM   #1
blakehammon
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Rep: Reputation: 0
Question Apache 403 Forbidden Solution Need Reason


Ok So I Spent way too much time trying to figure this one out.

With a fresh Install of Redhat 9 and a White Box and Apache would not Read the index.html. It kept on coming back with 403.1 Forbidden and bringing me to the Apache test Page (I hate that Page now).

So I Ckecked PERMS and Made new Root directories to force apache to display the Index.html. I switched the file to index.htm and still nothing.

So I went back into the Redhat Apache config and switched the order in which is pulls up the default page
from index.html, index.htm, index.php
to index.htm, index.html, index.php

and it worked fine.

Why is this?

And if we can figure out why, then why did it not occur on a different box that I built, using the same distribution disks.

Is it hostname, network related, those aspects were different between the two boxes.

So it is an odd problem and if anyone has any insight on why this would occur would be great, because right now my faith in LINUX has gone down a bit.

Thanks
 
Old 07-11-2003, 10:51 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Those are not an order but just a argument/value apache looks for with default pages in a directory. Not sure why it works with a comma after each one listed as you usually don't need or specify a comma in that directive.

Also I'm a bit confused on your statement: "So it is an odd problem and if anyone has any insight on why this would occur would be great, because right now my faith in LINUX has gone down a bit. "

Shouldn't that be losing faith in Apache, as Linux and Apache are not the same thing... ??
 
Old 07-11-2003, 11:23 AM   #3
blakehammon
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I agree it is an apache problem not a linux problem, good point. The whole collective does get wrapped up in one name from time to time.

The order in which I put

from index.html, index.htm, index.php
to index.htm, index.html, index.php


does not follow syntax in the post, it is just the order in which they are to be read.

The commas are not in the actual httpd.conf file.

Has Anyone else had this problem?
 
Old 07-11-2003, 12:13 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Well its probably a Redhat thing most likely. I would go by the actual httpd.conf file, maybe the way you update in the Redhat configuration tool your using needs to have a comma to separate the values or it places them as one large value or something..

Have you tried without the comma's and then looked how it placed it in your httpd.conf file?

With all that said now, its not even an apache thing, its a Redhat problem.. hehe!
 
Old 07-11-2003, 12:39 PM   #5
blakehammon
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Ya I agree it.

I was using the utility because the people who are going to be using this machine will be using the utility, so I was getting familiar with it.

Whatever it is it is not pretty, and not fun either.

And well I guess I have not lost any faith, I was just in a gumpy mood about it when I posted before.
 
Old 07-11-2003, 01:32 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
I don't use Redhat no longer but I would say this is something to bring up with them, find out if its meant to work that way or might be a bug in their tool.
 
Old 07-11-2003, 01:48 PM   #7
blakehammon
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Yes I will be going to them next.

I am not a big red hat fan myself but it seems to be the default for companies.

What do you use?

I like Debian and Slackware
 
Old 07-15-2003, 09:59 PM   #8
pzero
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Yeessssss ... I am having the same problem. I am very frustrated with this. I have tryed manually changing the httpd.conf file and also using the redhat config utility. Nothing seems to work.
 
Old 07-15-2003, 10:19 PM   #9
pzero
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
OK .... I fixed it. I went back into the httpd.conf file and changed the DirectoryIndex to index.htm then restarted the httpd service and voila... I cant believe it was that easy after 2 days!!! There definalely seems to be a recurring issue with this. I am also using rh 9. Maybe only on certain configurations?
 
Old 07-24-2003, 11:24 AM   #10
johnewing
Member
 
Registered: Jul 2003
Location: Scotland
Posts: 34

Rep: Reputation: 16
Forbidden Error

Thank you that was driving me crazy. Just changed the httpd.conf file and it works now.

Has anyone emailed redhat to let them know this is a prob?
 
Old 07-25-2003, 08:13 AM   #11
blakehammon
LQ Newbie
 
Registered: Jun 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Yes The Bug has been posted to Redhat bugzilla
 
Old 07-25-2003, 12:07 PM   #12
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
If you want a good visual utility for managing your Web server (and everything else, for that matter), get Webmin. Just don't forget to limit your users to the modules that you want them to have, or they will have access to *everything* on the system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: 403 forbidden johnty01 Linux - Networking 5 04-05-2008 02:20 PM
apache 403 forbidden? wezhousheng Linux - Networking 5 05-13-2005 12:15 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
Apache 403 Forbidden quozt Linux - Networking 10 02-24-2004 04:59 PM

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

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