I need to move a wordpress site from the root of nginx to a subfolder so i can have multiple sites on the one rackspace server.
I need a script to create a ssh sftp user that ONLY has access to the website folder
(i.e. it creates a user, if i log in via sftp it only sees and can access the website folder, same if he logs in via ssh with that user, it can only see the website folder and run scripts it needs on those folders)
I need a script that will create another nginx file that will configure a website on the same server for a wordpress or drupal install (i.e. i run it and specify the url of the domain and type of site(wp/drupal), it creates the nginx file and configures the website for the site admin (the user created above in previous script ) to install and upload the site.