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
 
Search this Thread
Old 05-07-2006, 02:28 PM   #1
Pygobombe
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Distribution: ubuntu, opensuse, freebsd, osx. (and a few others from time to time)
Posts: 14

Rep: Reputation: 0
Apache 2 vhost problem


I have apache 2.2 installed on slackware 10.

What the problem is, is that I get an error 403 "Permission Denied" when trying to access anything other than files in and under /home/main .

http://ack.u13.net/httpd.conf is my httpd.conf is a copy of the 'httpd.conf' file
http://ack.u13.net/httpd-vhosts.conf is a copy of the 'httpd-vhosts.conf' file.

See anything wrong there?


Here is a "ls -l" of whats in the /home dir. Directories are chmod 755 and files are 644.
Code:
root@ack:/home# ls -l
total 44
drwxr-xr-x  2 flab          flab           4096 2006-04-23 14:44 flab/
drwxr-xr-x  2 root          root           4096 2005-07-14 01:14 ftp/
drwxr-xr-x  3 k9joy         k9joy          4096 2006-05-04 00:30 k9joy/
drwx------  2 root          root          16384 2006-01-14 10:00 lost+found/
drwxr-xr-x  3 main          main           4096 2006-05-06 15:06 main/
drwxr-xr-x  4 mikeon84      mikeon84       4096 2006-05-06 20:28 mikeon84/
drwxr-xr-x  3 root          root           4096 2006-04-23 22:00 test/
drwxr-xr-x  3 uber-mod-gods uber-mod-gods  4096 2006-05-03 01:09 uber-mod-gods/

and a "ls -l" of /home/main/www/
Code:
root@ack:/home/main/www# ls -l
total 30496
-rw-r--r--  1 root root      807 2006-05-06 20:59 httpd-userdir.conf
-rw-r--r--  1 main main     1963 2006-05-07 13:54 httpd-vhosts.conf
-rw-r--r--  1 root root    13654 2006-05-07 13:59 httpd.conf
drwxr-xr-x  2 main main     4096 2006-05-06 18:15 images/
-rw-r--r--  1 main main       81 2006-05-06 15:25 index
-rw-r--r--  1 main main       12 2006-05-03 00:48 test.txt
-rw-r--r--  1 main main     1954 2006-05-03 00:51 vhost-directive.txt

Any suggestions?



EDIT: Alright, after chatting with a few kind folks in #apache on irc.freenode.net I got it working.
It was the <Directory /> directive.
There needed to be a directive for documentroot, so that apache will serve pages from it.

Last edited by Pygobombe; 05-08-2006 at 12:20 AM.
 
  


Reply

Tags
apache, apache2, httpd, vhost, vhosts


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
apache vhost problem jelgavchik Linux - Software 4 04-27-2008 04:45 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM
vhost in apache jelgavchik Linux - Networking 3 02-07-2005 06:41 PM
apache 1.3 vhost z4Rilla Linux - Software 0 08-03-2003 06:44 AM
Odd Apache VHost Problem LinuxDude Linux - Software 2 03-13-2003 09:27 PM


All times are GMT -5. The time now is 06:16 PM.

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