Below is the M2 virtual hosts config file in /etc/nginx/sites-available/m2.m235p1.local.conf
server {
listen 80;
server_name m2.m235p1.local;
set $MAGE_ROOT /var/www/html/m2235-p1;
# set $MAGE_MODE production;
include /var/www/html/m2235-p1/nginx.conf.sample;