Diferencia entre revisiones de «Configurar servidor Apache para activar directorio de usuario»
De Wiki de BandaAncha.eu
(No se muestran 2 ediciones intermedias de otro usuario) | |||
Línea 1: | Línea 1: | ||
$ cd | $ cd | ||
− | $ mkdir public_html | + | $ mkdir servidor/public_html |
− | $ chmod +x public_html | + | $ chmod +x servidor/public_html |
− | $ chcon - | + | $ chcon -Rt httpd_user_content_t servidor/public_html |
$ chmod 711 ../<home_dir> | $ chmod 711 ../<home_dir> | ||
$ su | $ su | ||
Línea 10: | Línea 10: | ||
/etc/httpd/conf.d/ | /etc/httpd/conf.d/ | ||
ls --scontext | ls --scontext | ||
− | chcon - | + | chcon -Rt user_home_t public_html |
+ | |||
+ | [[Categoría:Administración de un servidor dedicado]] |
Revisión actual del 17:33 16 dic 2012
$ cd $ mkdir servidor/public_html $ chmod +x servidor/public_html $ chcon -Rt httpd_user_content_t servidor/public_html $ chmod 711 ../<home_dir> $ su # setsebool httpd_enable_homedirs true # emacs /etc/httpd/conf/httpd.conf & /etc/httpd/conf.d/ ls --scontext chcon -Rt user_home_t public_html