LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-26-2004, 04:15 PM   #1
jkpalmer52
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: RH 7.2, RH 8.0 and RH 9.0
Posts: 32

Rep: Reputation: 15
You don't have permission to access / on this server.


Fresh install of RH 9.

Using Apache (HTTPD) and used the default directory structure for the pages /var/www/html. Pages get served fine.

Change my virtual directory to /home/jim/newsite and made sure that permissions are IDENTICAL to the way /var/www/html folder and files and when I try to serve up a page I receive:

Forbidden

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

Additionally, a 403 Forbidden error was encountered

I've been struggling with this all day and I know that in RH 8 I didn't have this issue.

Help would be greatly appreciated...

-jP
 
Old 01-26-2004, 04:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure you have a directory entry in httpd.conf that allows connections by default.
 
Old 01-27-2004, 06:40 AM   #3
jkpalmer52
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: RH 7.2, RH 8.0 and RH 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
Make sure you have a directory entry in httpd.conf that allows connections by default.

What is it that I'm looking for and what values should I set it to?

I checked another machines httpd.conf file and my machine and neither popped anything like you mentioned out to me.

Regards,
 
Old 01-27-2004, 03:57 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Your old document root /var/www/html should have had a <Directory> entry. Change the path in this entry to point to your new DocumentRoot
 
Old 01-27-2004, 04:05 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Should look something like this in your config file:

Code:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/home/jim/newsite">
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
You don't have permission to access /~username on this server. sijolinux Linux - Newbie 5 01-03-2008 05:19 PM
Apache Vhost( You don't have permission to access / on this server.) trekgraham Linux - Software 3 07-08-2004 10:01 AM
After file oops ? Forbidden You don't have permission to access / on this server. leongoogs Linux - Newbie 3 04-13-2004 09:27 AM
You don't have permission to access / on this server jaydave Linux - Networking 1 03-15-2003 06:11 AM
You don't have permission to access.. apache ?'s jester_69 Linux - General 3 09-06-2002 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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