I have installed chef-server
on an Ubuntu 12.10 system using the official .deb
package for that release. After the installation had finished I run
chef-server-ctl test
Which reported success, 0
failures.
The server - an Amazon EC2 instance - has 1 network interface, which has an internal address assigned to it. Let's say the IP address is 10.223.92.58
and hostname -f
returns something like:
ip-10-223-92-58.eu-west-1.compute.internal
However, AWS EC2 allows accessing the server from the internet using 53.242.31.23
or DNS ec2-53-242-31-23.eu-west-1.compute.amazonaws.com
.
In order to allow access via the Public DNS name I added the following lines to /etc/chef-server/chef-server.rb
:
lb[:enable] = "false"
lb[:web_ui_fqdn] = "ec2-53-242-31-23.eu-west-1.compute.amazonaws.com"
nginx[:server_name] = "ec2-53-242-31-23.eu-west-1.compute.amazonaws.com"
nginx[:url] = "https://ec2-53-242-31-23.eu-west-1.compute.amazonaws.com"
nginx[:enable_non_ssl] = "true"
I can access the server using https://ec2-53-242-31-23.eu-west-1.compute.amazonaws.com
and reach the login page. The login page will then redirect me (after successful login) to the user
edit page, in order to change my password. (That's by design).
Problem:
The redirect to the user edit page will not work, as the user controller (or every other controller) will complain about a non existing session and redirect me to the login page again and again. The problem does not exist if I try to access the page from it's local DNS domain name or IP. Am I missing some configuration values?