httpd-apache-userdir

useradd user9
useradd user10

yum install httpd -y
firewall-cmd --add-service=http
firewall-cmd --add-service=http --permanent

vim /etc/httpd/conf.d/userdir.conf
UserDir enabled
UserDir public_html


mkdir -p /home/user10/public_html/
echo "WelCome user10" > /home/user10/public_html/index.html
chown -R user10:user10 /home/user10/

chmod 755 /home/user10
chmod 755 /home/user10/public_html
###########
chcon -R -t httpd_user_content_t /home/user10/public_html
setenforce 0
###########

curl 127.0.0.1/~user10/


###########################################

mkdir -p /home/user9/public_html/
echo "WelCome user9" > /home/user9/public_html/index.html
chown -R user9:user9 /home/user9/

chmod 755 /home/user9
chmod 755 /home/user9/public_html