M
M
Magi2016-04-21 16:07:14
Nginx
Magi, 2016-04-21 16:07:14

How to set up an opencart 2 installation in a subdirectory of a site on nginx?

Please tell me how to register the nginx virtual server config for opencart, if it is in a subdirectory of an existing site?
Those. there is a configured virtual server domain.ru Opencart should be available at domain.ru/store/ What should I put in server_name ?
On www.domain.ru/store; nginx is complaining.
server name "www.domain.ru/store" has suspicious symbols in /etc/nginx/sites-enabled/virtual.host:9

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-04-21
@ruvasik

You need to configure opencart here, not nginx.
The domain name cannot be a URL with a folder, that's what the name is for)
With regards to opencart, you need to look in the direction of redirects.
If there is no easy way to run it in a folder in its options, then you need to shaman yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question