LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2004, 12:01 PM   #1
unixmad
Member
 
Registered: Aug 2004
Posts: 47

Rep: Reputation: 15
I think apache is blocking web pages with forbidden error? need help


Hi,
for some reason apache is blocking access to the www.hublist.org web site on port 80 ,

My setup is 2 seperate harddrives in amd64 machine, 1 drive has windows installed and the other has linux fedora. Anyway I have recently installed apache 2 with php & mod perl on my linux fedora 2 O/S. Everything seems to be working except that when I try to access www.hublist.org the exact error is "Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.50 (Fedora) Server at www.hublist.org Port 80"

What would be causing this? I cant access this site or Direct connect hubs on linux or windows......... the thing is apache isnt installed on windows?.

Can anyone help me so that I can get httpd.conf configured to give complete access to all computers on my network?

Thanks
David
 
Old 08-23-2004, 01:36 PM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
check for these lines, modify accordingly and uncomment them



ServerRoot "/usr/local/apache"

DocumentRoot "/usr/local/apache/htdocs"
### see to that u change directory permissions to allow users to read/write..


<Directory "/usr/local/apache/htdocs">
Order allow,deny
Allow from all
</Directory>

<IfModule mod_dir.c>
DirectoryIndex index.html
## create index.html in the directory ----> /usr/local/apache/htdocs

</IfModule>

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
 
Old 08-23-2004, 01:56 PM   #3
unixmad
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Wink TY

great Thanks for the help Im trying that now
 
Old 08-23-2004, 02:07 PM   #4
unixmad
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
I have al the lines you suggested thanks for the help, one thing which is weird is that I can run html docs with http://llocalhost/index.html & also I can run CGI docs. Can you get access to www.hublist.org ? its just im wandering if its there site as I can access all my other web pages, the reason I think the fault was with me is because the error message is comming from apache and appears to be my exact setup

My permissions for htdocs are now 775

Last edited by unixmad; 08-23-2004 at 02:10 PM.
 
Old 08-23-2004, 02:19 PM   #5
unixmad
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
I followed your instructions but I still have the same problem however I added this myself earlier.....


<Directory />
Options FollowSymLinks
AllowOverride None
Allow from all
</Directory>


Does that look okay?? bearing in mind I have mod_perl and php installed (which work just now)
 
Old 08-23-2004, 04:46 PM   #6
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
chmod 644 /usr/local/apache/htdocs/index.html [if ur using html]

or

chmod 644 /usr/local/apache/htdocs/index.php [if ur using php]
 
Old 08-24-2004, 05:49 AM   #7
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Quote:
Originally posted by unixmad
I have al the lines you suggested thanks for the help, one thing which is weird is that I can run html docs with http://llocalhost/index.html & also I can run CGI docs. Can you get access to www.hublist.org ? its just im wandering if its there site as I can access all my other web pages, the reason I think the fault was with me is because the error message is comming from apache and appears to be my exact setup

My permissions for htdocs are now 775
Let me get this straight. Are you hosting www.hublist.org? That is to say, is it one of the sites that your server serves?

If not, then the mere coincidence that their webserver uses the same version of Apache as you is irrelevant. I haven't checked the site (nor will I, I don't generally visit sites that I have no interest in, or knowledge of), but if it, or any other server, gives you a 403 error, that has nothing to do with your server. It simply means that they don't want you looking at whatever they have on that section of their site.

Enjoy!
--- Cerbere
 
Old 08-28-2004, 04:53 PM   #8
unixmad
Member
 
Registered: Aug 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Yes that what it is lol , that server was down at the time when i set up apache , I have it working now
 
  


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
Forbidden access to soft link on apache web server bnj Linux - Software 3 05-03-2005 08:14 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
Uploading web pages; get "access forbidden" when I load them in browser! Thermodynamic Linux - Software 1 04-03-2004 05:52 PM
Apache forbidden error!!!!!!!!!!! RKris Linux - Software 5 11-24-2003 07:17 AM
Apache 2.0.4 .. FORBIDDEN error CRego3D Linux - Software 6 05-15-2003 10:44 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration