I am new with nginx and just need some help configuring and setting things up to host multiple websites lets say 10 websites mostly wordpress and drupal. Now have been used to using directadmin control panel...i will like set things up to be simple to that of most control panels...so i can have each user account have their own folders currently what is on my mind is to have each user for each website account /home/ will be the home folder /home/user1/ will be the folder of user1 /home/user1/domains/ will be the domain folder for all domains under user1 /home/user1/domains/domain1.com will be the folder for domain1.com under user1 /home/user1/domains/domain1.com/public_html will be for example the public_html folder for domain1.com So that is all i want. I am following this guide on linode and i am here http://library.linode.com/lemp-guides/centos-5#sph_configure-nginx-virtual-hosting How do i setup or configure to achieve this?
You need to edit the "root" line on each sites conf block to reflect the porper path to each sites pub dir.
How do i create differet directories for each account so each user can login into their own account? So then i can link the user directories so that the user can access it when they login? Just think about it as if having multiple users with their own website or domain names.
You need some good knowledge to do this manually. I would recommend you to get cPanel and install cPnginx. It's an interface to manage nginx and everything is going automatically.
cPanel cost 38$ month.. isn't cheap solution! The configuration depend for the purpose of hosting. I there are all friend and trust guy, can just configure nginx with fascgi and proftpd for accounting. But if you want to securing and "separate" all vhost you need to use suEXEC, suPHP.. and nginx can't be configured with it. You need to use Apache as backend or use php-fpm on nginx.