CentOS 7
Sponsored Link

Nginx : Enable Userdir
Enable Userdir for common users to open their site in the home directories.
[1] Configure Nginx.
[[email protected] ~]#
vi /etc/nginx/nginx.conf
# add into "server" section

        location ~ ^/~(.+?)(/.*)?$ {
            alias /home/$1/public_html$2;
            index  index.html index.htm;
            autoindex on;

[[email protected] ~]#
systemctl restart nginx

[2] Create a test page with a common user to make sure it works normally.
[[email protected] ~]$
chmod 711 /home/cent

[[email protected] ~]$
mkdir ~/public_html

[[email protected] ~]$
chmod 755 ~/public_html

[[email protected] ~]$
vi ~/public_html/index.html
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">
Nginx UserDir Test Page