1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

configuring nginx on LEMP

Discussion in 'Nginx' started by nokia3310, Nov 15, 2011.

  1. #1
    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?
     
    nokia3310, Nov 15, 2011 IP
  2. nokia3310

    nokia3310 Peon

    Messages:
    191
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone nice enough to help?
     
    nokia3310, Nov 16, 2011 IP
  3. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #3
    You need to edit the "root" line on each sites conf block to reflect the porper path to each sites pub dir.
     
    AnthonyG, Nov 17, 2011 IP
  4. nokia3310

    nokia3310 Peon

    Messages:
    191
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4

    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.
     
    nokia3310, Nov 17, 2011 IP
  5. Qarizma

    Qarizma Member

    Messages:
    55
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #5
    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.
     
    Qarizma, Nov 23, 2011 IP
  6. raffo77

    raffo77 Active Member

    Messages:
    234
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    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.
     
    raffo77, Nov 23, 2011 IP