Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question