Hi,
First of all, I think you should try to wrap the tow projects configurations on separate server blocks, for example:
server {
listen 8080;
root /data/up1;
location / {
}
}
It should look like something like this:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name tstdmn.com www.tstdmn.com;
root /var/www/html/tstdmn.com/public;
# Add index.php to the list if you are using PHP
index index.html index.php index.htm index.nginx-debian.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php {
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include /etc/nginx/fastcgi_params;
}
}
}
server {
listen 80;
listen [::]:80;
server_name tstdmn.com/florist www.tstdmn.com/florist;
root /var/www/html/florist/florist_backend/public;
# Add index.php to the list if you are using PHP
index index.html index.php index.htm index.nginx-debian.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php {
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include /etc/nginx/fastcgi_params;
}
}
}
I never did this way before, I usually use subdomains, If it doesn't work you could try it:
server_name florist.tstdmn.com;
You can find more information about this kind of configurations here: http://nginx.org/en/docs/beginners_guide.html