Apache userdir mod (Ubuntu 22.04)
https://hackmd.io/@marcsaez/userdir_mod
Crear directorios para que cada usuario tenga su carpeta public_html
Enable userdir mod
Add a public_html dir on: /etc/skel/
Create an user, example:
Grant privileges on other's to execute
Per automatitzar que es donin permisos automàticament i evitar el pas anterior (opcional):
Anem a /etc/login.defs
i modifiquem HOME_MODE així:

Create a index.html file on /home/user/public_html path:

Test:
