Skip to content

Infern1/nginx_vhosts

 
 

Repository files navigation

Nginx Php Websites Vhosts Script

This is a simple script that allow you to create a VHost for your PHP based website on your Nginx server. Also the system is able to create a sftp user to manage the contents, disabling the shell access.

All the websites will be stored under /srv/www directory and the main domain will always be the non-www one.

Requirements:

  • PHP-FPM;
  • NGINX;

Credits:

This script was inspired by the work of: http://www.sebdangerfield.me.uk/2012/05/nginx-and-php-fpm-bash-script-for-creating-new-vhosts-under-separate-fpm-pools/

Nginx Template inspired by: http://rtcamp.com/tutorials/nginx-wordpress-fastcgi_cache-with-conditional-purging/

Changelog:

  • 11/08/2011 Project created by Mitesh Ashar
  • 27/11/2012
  • 05/06/2013 Added support for sftp + /var/www
  • 08/06/2013 Moved to /srv/www and subdomain support
  • 09/06/2013 Added support with Wordpress dedicated template, changed php-fpm permission to www-data

About

Shell script to add a new vhost on nginx. Modifying the shell script available on http://www.sebdangerfield.me.uk/2012/05/nginx-and-php-fpm-bash-script-for-creating-new-vhosts-under-separate-fpm-pools/ to suit my needs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%