How to configure opencart 2 installation in a subdirectory of the site on nginx?

Please tell me how to register configuration the virtual server in nginx for opencart, if he is in a subdirectory of an existing site?

Ie is configured on the virtual server Opencart needs to be available at What to write in server_name ?

On; nginx complains.

server name "" has suspicious symbols in /etc/nginx/sites-enabled/
July 12th 19 at 19:28
1 answer
July 12th 19 at 19:30
Then you need to configure opencart, not nginx.
The domain name can not be a url with a folder on it and name)
With regards to opencart need to look to the side redirects.
If the options there is no easy way to run in the folder, you need to already to the shaman.

Find more questions by tags NginxOpenCart