Problem

    1.  You tried to delete a user
    2.  You will receive error something like nginx.conf error. Can’t restart Nginx
      * Restarting nginx nginx nginx: [emerg] "alias" directive is not allowed here in /home/brand57/conf/web/n ginx.conf:1

Solution

    1. Login into your server using SSH
    2. Edit nginx configuration at /etc/nginx/conf.d/vesta.conf
    3. Delete line related to your user name
      include /home/aircond/conf/web/nginx.conf;
      include /home/accin/conf/web/nginx.conf;
      include /home/fitri/conf/web/nginx.conf;
    4. Hopefully it will works for you
%d bloggers like this: