LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-03-2002, 04:51 PM   #1
MiB_24
LQ Newbie
 
Registered: Jan 2002
Posts: 16

Rep: Reputation: 0
Problem with Apache and public_html


ok problem here ... I can access the root web directory... but I can't access the user home directory /home/user/public_html ... all the permission are at 755 (files and folders) and I have my index.html in the folder

I searched a lot about this problem ... many people have it but no good solution for me yet.

the logs tells me:
[03/Jan/2002:17:49:04 -0500] "GET /~user HTTP/1.0" 403 278

Directory index forbidden by rule ( i was getting that before... now I'm not getting it... I get nothing in the error_log)

The browser gives me a error 403: You don't have permission to access /~user on this server.

These are the rules in my http.conf

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/usr/local/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<Directory /home/*/public_html>
Options Indexes MultiViews SymLinksIfOwnerMatch IncludesNoExec
AllowOverride None
Order allow,deny
Allow from all
</Directory>
 
Old 01-03-2002, 09:44 PM   #2
MiB_24
LQ Newbie
 
Registered: Jan 2002
Posts: 16

Original Poster
Rep: Reputation: 0
Damn ... Thanks to the guy who answered through email...

The answer was that the directory /home/user must be 711 ... redhat creates the directory by default as 700

I personally think it's stupid but anyway... my problem is solved
 
Old 07-28-2002, 12:28 AM   #3
lamzie
LQ Newbie
 
Registered: Jul 2002
Location: Chicago
Distribution: Redhat 7.2
Posts: 1

Rep: Reputation: 0
hi
how's about http://host/~user/index.html instead http://host/~user? do you familiar with this problem? any help would be appreciate
 
Old 07-28-2002, 12:33 AM   #4
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
lamzie: add
Code:
DirectoryIndex index.html index.htm index.php index.php3 index.cgi index.pl
to httpd.conf
 
  


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
Ads for users public_html on Apache 2 Oxagast Linux - Software 5 10-09-2005 06:27 PM
apache UserDir public_html problem aeshley Linux - Newbie 4 11-29-2004 01:58 AM
apache unable to access /home/*/public_html directory cavemanf16 Linux - Software 6 07-08-2004 05:43 AM
poblem with apache and private public_html keevitaja Linux - Newbie 0 08-16-2002 11:57 AM
apache UserDir public_html problem aeshley Linux - Networking 4 01-17-2002 03:43 PM

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

All times are GMT -5. The time now is 07:46 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
Open Source Consulting | Domain Registration