I have directory containing FastCGI projects, to be more specific different versions of the same project. For example, there are ver1 and ver2 directories located at /some/dir/project/ and I want them to be ver1.project.example.com and ver2.project.example.com respectively.
How should I do it with nginx without creating different configs for each version and assuming that new versions may be added dynamically?
in
/etc/nginx/sites-enabled/project:adding a new version directory at
/some/dir/project/version99will automatically make it available atversion99.project.example.com.