capistrano-plugins / capistrano-unicorn-nginx

Capistrano tasks for automatic and sensible unicorn + nginx configuration
MIT License
175 stars 81 forks source link

nginx servername alias #42

Closed luckyraul closed 9 years ago

luckyraul commented 9 years ago

provide support for it

bruno- commented 9 years ago

Hi, I'm not all too familiar with this feature, but I think\ it would be possible by manually editing nginx_conf template. You can read instructions about generating and working with templates in this wiki page.

As mentioned above, I think this should enable you to elegantly handle the requirement so I'll close the issue. Please, feel free to reopen if it doesn't do the trick or you have more questions.

luckyraul commented 9 years ago

http://nginx.org/en/docs/http/ngx_http_core_module.html#server_name

Can you make setting with array of additional servername for application?