creating virtual hosts on a vagrant box

后端 未结 1 614
臣服心动
臣服心动 2021-02-06 15:18

I am trying to setup a development environment based on vagrant provisioned with Chef. I created an environment with Apache (used Chef) and can access web server from my host ma

相关标签:
1条回答
  • 2021-02-06 15:44

    The answer is YES, you can do this using Chef. The choices you have to is to use standard community recipe of Apache2 by Opscode or part of it. You might also want to check discussion here and here

    Good practice would be of course to use a recipe/write your own to create virtual hosts and enable them. One of things you want to achieve with Chef is to automate this so that you won't have to do it manually. The complexity of your scenario might demand you to do it differently than what has been tried in links below. You might have to DNS configurations in place of course if you are planning to deploy this places other than your local machine.

    0 讨论(0)
提交回复
热议问题