How to install and use a Wordpress on a ERPNext VPS

@xickomesquita

Hi all,

I’ve cracked it at last!

Installing ERPNext configures Nginx to look for configs in /etc/nginx/conf.d/ rather than /etc/nginx/sites-enabled. See the last line in etc/nginx/nginx.conf

   proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=web-cache:8m max_size=1000m inactive=600m;

   include /etc/nginx/conf.d/*.conf;
}

So simply put your site configuration files in the /etc/nginx/conf.d/ directory, and ensure they end with .conf or allow other extensions in /etc/nginx/nginx.conf like so:

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=web-cache:8m max_size=1000m inactive=600m;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/conf.d/*.com; #this will include all .com site configs

}

2 Likes