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 domain.ru Opencart needs to be available at domain.ru/store/ What to write in server_name ?

On www.domain.ru/store; nginx complains.

server name "www.domain.ru/store" has suspicious symbols in /etc/nginx/sites-enabled/virtual.host:9
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