School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Cannot connect to Apache webserver You are not authorized to view this page error 403 forbidden

#1 Teisi  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 09-October 07


Dream Kudos: 0

Share |

Cannot connect to Apache webserver

Posted 09 October 2007 - 01:22 AM

I'm trying to connect to my apache webserver. And I get the following error

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied. Error 403 - forbidden.

May someone advise me on the changes I should make in the httpd.conf file.
Thanx
Was This Post Helpful? 0
  • +
  • -


#2 Thorian  Icon User is offline

  • Pirate Medic
  • Icon

Reputation: 16
  • View blog
  • Posts: 5,859
  • Joined: 06-June 02


Dream Kudos: 275

Re: Cannot connect to Apache webserver

Posted 09 October 2007 - 06:41 AM

I am going to move this over to software but I will also leave a refferal link here. it would probally get more hits from a Apachie administrator over there.

Sorry I only know a bit of websphere
Was This Post Helpful? 0
  • +
  • -

#3 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • Icon

Reputation: 39
  • View blog
  • Posts: 1,366
  • Joined: 12-May 05


Dream Kudos: 0

Expert In: Hardware, Networking

Re: Cannot connect to Apache webserver

Posted 09 October 2007 - 05:16 PM

Make sure all the files are owned by the apache user.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • DIGI-TAL-HARD-CORE
  • Icon

Reputation: 816
  • View blog
  • Posts: 17,399
  • Joined: 10-May 07


Dream Kudos: 2925

Expert In: Goofing Off

Re: Cannot connect to Apache webserver

Posted 09 October 2007 - 07:03 PM

View PostTeisi, on 9 Oct, 2007 - 02:22 AM, said:

I'm trying to connect to my apache webserver. And I get the following error



Inside of the httpd.conf, what do you show for the following two settings?

   DocumentRoot /var/www/html/directory
   DirectoryIndex index.htm



Assuming you are running a *nix OS, what are the permissions for the directory & files?
Was This Post Helpful? 0
  • +
  • -

#5 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • Icon

Reputation: 39
  • View blog
  • Posts: 1,366
  • Joined: 12-May 05


Dream Kudos: 0

Expert In: Hardware, Networking

Re: Cannot connect to Apache webserver

Posted 09 October 2007 - 08:20 PM

I have:

DirectoryIndex index.html index.htm index.php



I just checked, and, for some reason, I have no DocumentRoot defined. However, httpd is reading out of /var/www/localhost/htdocs/

And everything in that dir is owned by user 'apache', group 'apache' (the same user and group that I have httpd running under), with file perms of 644 (unless otherwise changed, like for phpBB2 and Gallery2 dirs)
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is online

  • DIGI-TAL-HARD-CORE
  • Icon

Reputation: 816
  • View blog
  • Posts: 17,399
  • Joined: 10-May 07


Dream Kudos: 2925

Expert In: Goofing Off

Re: Cannot connect to Apache webserver

Posted 10 October 2007 - 02:54 AM

View PostMorphiusFaydal, on 9 Oct, 2007 - 09:20 PM, said:

I have:

DirectoryIndex index.html index.htm index.php



I just checked, and, for some reason, I have no DocumentRoot defined. However, httpd is reading out of /var/www/localhost/htdocs/

DocumentRoot /var/www/localhost/htdocs/
DirectoryIndex index.html index.htm index.php



httpd -k restart


Or if you use the initd script to bring it down & restart it, either way.
Was This Post Helpful? 0
  • +
  • -

#7 MorphiusFaydal  Icon User is offline

  • D.I.C Lover
  • Icon

Reputation: 39
  • View blog
  • Posts: 1,366
  • Joined: 12-May 05


Dream Kudos: 0

Expert In: Hardware, Networking

Re: Cannot connect to Apache webserver

Posted 10 October 2007 - 08:14 AM

View Postno2pencil, on 10 Oct, 2007 - 05:54 AM, said:

View PostMorphiusFaydal, on 9 Oct, 2007 - 09:20 PM, said:

I have:

DirectoryIndex index.html index.htm index.php



I just checked, and, for some reason, I have no DocumentRoot defined. However, httpd is reading out of /var/www/localhost/htdocs/

DocumentRoot /var/www/localhost/htdocs/
DirectoryIndex index.html index.htm index.php



httpd -k restart


Or if you use the initd script to bring it down & restart it, either way.



Yeah, I know. I'm not worried though. :)
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users