LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-20-2004, 11:25 PM   #1
itskiLLjoy
LQ Newbie
 
Registered: Aug 2003
Location: Tacoma, Washington
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Weird Apache errors


I just upgraded to the newest release of Apache2 httpd, and decided to setup some virtual hosts for all the domains I have on my box to have their own index. One of my friends asked that I let him use one of the domains, so I said sure, and setup the following VirtualHost (edited domain/user):

NameVirtualHost domain2.com:80
<VirtualHost domain2.com:80>
ServerAdmin friend@domain2.com
DocumentRoot /home/friend/public_html
ServerName domain2.com
ErrorLog logs/domain2.com-error_log
CustomLog logs/domain2.com-access_log common
</VirtualHost>

I then had him create the dir public_html in his home directory, and he made up a test index page. I restarted Apache and got no errors, so I assumed all was well.
When I try to access the page in IE, I get a 403 forbidden error tho! I then was curious, and changed the DocumentRoot to /home/myuser/public_html, restarted Apache, and loaded an index file just fine. What gives?! Both public_html folders were made by plain users, and the index files were just "echo blahblahtext > index.html". I also tried this with ANOTHER account on my box, and it gave me the same 403 error.

Perhaps something is setup differently, since I used my /home/myuser/public_html dir previous to the upgrade?! I'm stumped.
 
Old 05-21-2004, 04:08 AM   #2
itskiLLjoy
LQ Newbie
 
Registered: Aug 2003
Location: Tacoma, Washington
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
TTT... someone? No ideas as to what to check that would make 1 user's public_html dir work, and no one elses?!
 
Old 05-21-2004, 11:43 AM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
Well, the only thing I can think of is permissions. Apache's finicky sometimes :-/ Try changing the owndership of your friend's public_html directory to the same user/group that owns your public_html directory.

hth,
Laura
 
Old 05-21-2004, 12:01 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,457

Rep: Reputation: 104Reputation: 104
i guess,too, that its a permission question. chmod the home/public directory to 0755 and the files in there at least to be readable for everybody.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
weird make errors invinciblegod Linux - General 3 07-20-2005 08:59 PM
Weird ALSA Errors Mr_Munkey Linux - Hardware 4 06-10-2005 08:45 PM
Weird errors with MA111 on FC 2 ssimontis Linux - Wireless Networking 3 09-18-2004 10:24 AM
Weird IO errors link1305 Linux - Newbie 1 11-14-2003 07:56 PM
Weird cd command errors tarballedtux Linux - General 2 06-08-2003 09:53 AM


All times are GMT -5. The time now is 04:33 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration