next up previous contents index
Next: MySQL Up: Preparando los servicios Previous: Samba   Índice General   Índice de Materias

Apache

El servidor web apache tiene un módulo (incluido de serie) llamado UserDir que permite tener redirigir la URL http://maquina/~usuario a un directorio dentro del directorio personal del usuario. Esta posibilidad hay que habilitarla en el fichero de configuración httpd.conf, con una configuración como esta:

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

#
# 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
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

De esta forma cada usuario tendrá un directorio public_html dentro de su directorio personal donde podrá poner contenidos web que serán accesibles en la URL http://maquina/~usuario.

Actualmente este directorio debe llamarse public_html y debe estar en el directorio personal del usuario. En el futuro se podrá configurar el nombre y la ruta de este directorio.



Miguel Ángel Vilela García (miguev) 2002-08-21