Gentoo Archives: gentoo-user-es

From: Borja Rossell <sborja38@×××××.com>
To: gentoo-user-es@l.g.o
Subject: [gentoo-user-es] Apache configuracion del userdir
Date: Sat, 25 Apr 2009 09:36:21
Necesito configurar el mod de userdir en mi apache. La version de apache que
uso es un mod de la 2.2. Hay varios archivos de configuracion que se cargan
desde el archivo principal. Tambien he creado en los home's la carpeta
public_html y le he dado los permisos con chmod.

Este es el archivo inicial:

# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
# Support:
#   [mailing lists]
#                 [web forums]
#   irc://      [irc chat]
# Bug Reports:
#                    [gentoo related bugs]
#   [apache httpd related bugs]
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:> for detailed information.
# In particular, see
# <URL:>
# for a discussion of each configuration directive.
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib/apache2"

# Dynamic Shared Object (DSO) Support
# To be able to use the functionality of a module which was built as a DSO
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
# Example:
# LoadModule foo_module modules/
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND
#         Do not change manually, it will be overwritten on upgrade.
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
# Change these at your own risk!

LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule auth_basic_module modules/
LoadModule authn_alias_module modules/
LoadModule authn_anon_module modules/
LoadModule authn_dbm_module modules/
LoadModule authn_default_module modules/
LoadModule authn_file_module modules/
LoadModule authz_dbm_module modules/
LoadModule authz_default_module modules/
LoadModule authz_groupfile_module modules/
LoadModule authz_host_module modules/
LoadModule authz_owner_module modules/
LoadModule authz_user_module modules/
LoadModule autoindex_module modules/
<IfDefine CACHE>
LoadModule cache_module modules/
LoadModule cgid_module modules/
<IfDefine DAV>
LoadModule dav_module modules/
<IfDefine DAV>
LoadModule dav_fs_module modules/
<IfDefine DAV>
LoadModule dav_lock_module modules/
LoadModule deflate_module modules/
LoadModule dir_module modules/
<IfDefine CACHE>
LoadModule disk_cache_module modules/
LoadModule env_module modules/
LoadModule expires_module modules/
LoadModule ext_filter_module modules/
<IfDefine CACHE>
LoadModule file_cache_module modules/
LoadModule filter_module modules/
LoadModule headers_module modules/
LoadModule include_module modules/
<IfDefine INFO>
LoadModule info_module modules/
LoadModule log_config_module modules/
LoadModule logio_module modules/
<IfDefine CACHE>
LoadModule mem_cache_module modules/
LoadModule mime_module modules/
LoadModule mime_magic_module modules/
LoadModule negotiation_module modules/
LoadModule rewrite_module modules/
LoadModule setenvif_module modules/
LoadModule speling_module modules/
<IfDefine SSL>
LoadModule ssl_module modules/
<IfDefine STATUS>
LoadModule status_module modules/
LoadModule unique_id_module modules/
<IfDefine USERDIR>
LoadModule userdir_module modules/
UserDir public_html
LoadModule usertrack_module modules/
LoadModule vhost_alias_module modules/

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

# Supplemental configuration
# Most of the configuration files in the /etc/apache2/modules.d/ directory
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra
# or to modify the default configuration of the server.
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache


y este es el archivo donde esta la configuracion de userdir.


# Settings for user home directories

<IfDefine USERDIR>
<IfModule userdir_module>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Note that you must also set
# the default access control for these directories, as in the example below.

UserDir public_html

# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order allow,deny
        Allow from all
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all

# Suexec isn't really required to run cgi-scripts, but it's a really good
# idea if you have multiple users serving websites...
<IfDefine SUEXEC>
<IfModule suexec_module>
<Directory /home/*/public_html/cgi-bin>
    Options ExecCGI
    SetHandler cgi-script


# vim: ts=4 filetype=apache
Parece que esta activado pero la verdad es que no responde en la url



Subject Author
Re: [gentoo-user-es] Apache configuracion del userdir Arnau Bria <arnau@×××××××××.net>