[chef] how to setup chef-server 11 with cookbook (DNS problem, nginx proxy)?


Chronological Thread 
  • From: Vladimir Skubriev < >
  • To:
  • Subject: [chef] how to setup chef-server 11 with cookbook (DNS problem, nginx proxy)?
  • Date: Tue, 11 Feb 2014 10:50:24 +0400

After install server in local network, I has this config 

  server {
    listen 80;
    server_name chef.example.lab;
    access_log /var/log/chef-server/nginx/rewrite-port-80.log;
    rewrite ^(.*) https://$server_name:443$1 permanent;
  }

As you can see there is a rewrite rule.

This server installed on machine in local network (out local domain example.lab)

I want to setup our gateway nginx proxy frontend with backend to this internal chef server. 

I already setuped ssl certificates and nginx fronend with servername chef.example.com, our internet domain.

I want to proxy chef.example.com to chef.example.lab, but when I open in browser url


Why this occurs?

So I want that my intranet clients and internet clients connect to chef server with "independent" internet url: chef.example.com

For intranet clients I've setup fake dns zone with one name chef.example.com and chef server internal ip address.

I already runs several sites so.

But by default chef-server setup rewrite. 

Why it's setup rewrite rule by default ?

Are this a true use case ?

Thank you very much.

--
Faithfully yours,

CVision Lab System Administrator
Vladmir Skubriev



  • [chef] how to setup chef-server 11 with cookbook (DNS problem, nginx proxy)?, Vladimir Skubriev, 02/10/2014

Archive powered by MHonArc 2.6.16.

§