duplicate upstream “upstream_PHP_FPM” in /etc/nginx/conf.d/

Error : nginx: [emerg] duplicate upstream “upstream_PHP_FPM” in /etc/nginx/conf.d/ Cause: the same name upstream upstream_PHP_FPM is used in another config file also just change upstream_PHP_FPM to upstream_PHP_FPM1 This means that the same upstream is specified somewhere else, or you have/etc/nginx/common/upstream included several times.You can search like this:grep -r upstream/etc/nginx

Nginx and PHP-FPM Configuration and Optimizing

Nginx Configuration and Optimizing Tips and Tricks Nginx Tip 1. – Organize Nginx Configuration Files Normally Nginx configuration files are located under /etc/nginx path.One good way to organize configuration files is use Debian/Ubuntu Apache style setup: ## Main configuration file ##/etc/nginx/nginx.conf## Virtualhost configuration files on ##/etc/nginx/sites-available//etc/nginx/sites-enabled/## Other config files on (if needed) ##/etc/nginx/conf.d/ Virtualhost files have 2 …

Nginx and PHP-FPM Configuration and Optimizing Read More »

Open chat