Activar el directorio public_html Apache Ubuntu-Debian
Es bien sencillo:
Activa el módulo en apache.
sudo a2enmod userdir
Agrega esto a un archivo llamado usuario.conf que vas a crear en :
/etc/apache2/conf.d/
contenido:
# UserDir is now a module
UserDir public_html
#UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
Luego guarda los cambio cierra tu editor de texto y reinicia apache:
#>/etc/init.d/apache2 restart
Pruebalo!!!en tu directorio home deberias tener una carpeta llamada asi "public_html" si no está creala y dentro agrega un archivo de texto con el nombre "index.html" y agregale cualquier texto por ej. "Hola Mundo". luego escribe en un navegador
http://localhost/~nombreusuario
