D
D
Dmitry Sergeev2018-03-23 11:44:09
Nginx
Dmitry Sergeev, 2018-03-23 11:44:09

How to configure nginx for frontend and backend versioning?

Project structure:
/var/www/site.devel/
- v1/
-- /backend
-- /frontend
- v2/
-- /backend
-- /frontend
When site.devel is requested , php scripts in /v1/frontend must be executed, respectively requesting site.devel/backend should execute scripts in /v1/backend. If the version is specified (site.devel/v2/ and site.devel/v2/backend/), then scripts from the corresponding folder should be executed. So far, only regulars are on my mind.
PS version static in your vN folder

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question