Ordnerstruktur: /opt/www/$user
- add the next line at the end of
/etc/php5/fpm/php-fpm.conf
include=/opt/www/*/php-fpm-pool.conf
- add
include /opt/www/*/nginx-server.conf;
in the http block of/etc/nginx/nginx.conf
http {
[...]
include /opt/www/*/nginx-server.conf;
[...]
}
- copy the
TEMPLATE
folder to/opt/www/
sudo ./addsftpuser.sh $user
- restart nginx and php-fpm
passwd $user
to enable login- edit domains in
/opt/www/$user/nginx-server.conf
[...]
server_name $user.de www.$user.de;
[...]