In httpd.conf
add comment bellow line
userdir disabled
-----------------------------------------------
chmod 711 for /home/userdir(userid)
chmod 755 for /home/userdir(userid)/public_html
[or]
chcon -R -t htppd_sys_content_t /home/keval/web
-----------------------------------------------
system => selinux management => boolean
check => Allow httpdto read home directores(module apache)
[or]
setsebool -P httpd_enable_homedirs true
-----------------------------------------------
remove comment in httpd.conf
NameVirtualHost *:80
ServerName localhost
DocumentRoot /home/userdir/web
-----------------------------------------------
restart httpd
-----------------------------------------------
/etc/hosts
change localhost localhost.localdomain to localhost.localdomain localhost
127.0.0.1 localhost localhost.localdomain
::1 localhost localhost.localdomain
replace with
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
-----------------------------------------------