LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I think apache is blocking web pages with forbidden error? need help (https://www.linuxquestions.org/questions/linux-software-2/i-think-apache-is-blocking-web-pages-with-forbidden-error-need-help-221365/)

unixmad 08-23-2004 12:01 PM

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

UsualTuxpect 08-23-2004 01:36 PM

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

unixmad 08-23-2004 01:56 PM

TY
 
great Thanks for the help Im trying that now :)

unixmad 08-23-2004 02:07 PM

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

unixmad 08-23-2004 02:19 PM

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)

har5ha 08-23-2004 04:46 PM

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]

Cerbere 08-24-2004 05:49 AM

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

unixmad 08-28-2004 04:53 PM

Yes that what it is lol , that server was down at the time when i set up apache , I have it working now


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