PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > newbie: 403 Forbidden Access with UserDir and Symbolic
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

newbie: 403 Forbidden Access with UserDir and Symbolic

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2005, 04h13   #1
Carl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut newbie: 403 Forbidden Access with UserDir and Symbolic

I'm running RedHat rel 9 and apache 2.0, trying to setup user directories.
I've tried symbolic directories and and UserDir directive, but both return a
403 error. The permissions are 755. Can anyone show me what to do to get
symbolic directories are the UserDir to work.

Thanks.


  Réponse avec citation
Vieux 09/05/2005, 14h53   #2
Tim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: newbie: 403 Forbidden Access with UserDir and Symbolic

On Sun, 8 May 2005 21:13:05 -0500,
"Carl" <cmueller@msn.com> posted:

> I'm running RedHat rel 9 and apache 2.0, trying to setup user directories.
> I've tried symbolic directories and and UserDir directive, but both return a
> 403 error. The permissions are 755. Can anyone show me what to do to get
> symbolic directories are the UserDir to work.


Do the parent directories have suitable permissions, too?

Assuming something like "/home/username/public_html/", the /home/ directory
needs to be world executable, the /username/ directory needs to be world
executable, the /public_html/ directory needs to world readable and
executable, and so do all of its contents.

e.g. *minimum* permissions:

drwx-----x /home/
drwx-----x /home/tim/
drwx---r-x /home/tim/public_html/
drwx---r-- /home/tim/public_html/homepage.html
drwx---r-- /home/tim/public_html/something.jpeg

I've found that, working from default setups, once you uncomment out the
comments around the user-dir directives, enable user-dirs for the users
that you want, and make the home directories world executable/readable (as
required), that's all I needed to do with Red Hat 9 Linux.

e.g. to allow all users to have their own public_html directory, and
protect the root, I have this:

<IfModule mod_userdir.c>
UserDir Disabled root
UserDir enable
UserDir public_html
</IfModule>

Followed by the defaults in the following
<Directory /home/*/public_html>
</Directory>
block (just delete the hash marks starting off each line).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08339 seconds with 10 queries