LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 07-08-2004, 02:14 AM   #1
trekgraham
LQ Newbie
 
Registered: Apr 2004
Location: Woodstock,IL USA
Distribution: Ubuntu 8.04 Hardy
Posts: 20

Rep: Reputation: 0
Exclamation Apache Vhost( You don't have permission to access / on this server.)


I am trying to setup a vhost to a users home directory,
I have the directory chmod 0775 and 0664 for the files inside

here is my vhost entry:

<VirtualHost *:80>
ServerName gideon.federationirc.net
<Directory "/home/gideon/public_html">
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
ServerAdmin webmaster@gideon.federationirc.net
DocumentRoot /home/gideon/public_html
ErrorLog /home/gideon/gideon.federationirc.net-error_log
CustomLog /home/gideon/gideon.federationirc.net-access_log common
</VirtualHost>
ive tried it without the <Directory> Entry in there, same error
Exact error is as follows :

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.49 (Fedora) Server at gideon.federationirc.net Port 80

Please Help me, I have looked, tried everything I could to my knowlege.
there is a valid index.html file there
same one i use for my main /var/www/html
and it works. No trouble at all

Thank you
Derek Graham
email me, graham at federationirc.net
 
Old 07-08-2004, 05:07 AM   #2
MikeBest
LQ Newbie
 
Registered: Jul 2004
Location: Kent, England
Distribution: Suse / RedHat
Posts: 9

Rep: Reputation: 0
I don't know if it's necessary but I have a trainling "/" on the end of the directory names in my httpd.conf

Also you could try "Options Indexes" in your <Directory > section, this should allow a directory list and may indicate if it's a problem with the file or the virtual host.

Hope this helps.

Mike
 
Old 07-08-2004, 05:12 AM   #3
datprogrammer
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
I had this problem. In my case it was beacause /home/gideon directory dint have the right permissions..

try giving /home/gideon 755 or 775 as appropriate and see if that works...
 
Old 07-08-2004, 10:01 AM   #4
trekgraham
LQ Newbie
 
Registered: Apr 2004
Location: Woodstock,IL USA
Distribution: Ubuntu 8.04 Hardy
Posts: 20

Original Poster
Rep: Reputation: 0
thanks it works now, home directory wasnt set correctly
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM
Apache vhost issues (client denied by server configuration) bpk Linux - Software 8 02-16-2005 07:02 PM
You don't have permission to access / on this server. jkpalmer52 Linux - General 4 01-27-2004 04:05 PM
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


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