Unable to authenticate in Interface when running nginx on an alternative port #443

#1

Hi all,
I need some help here if possible, I'm trying to use the chef server running nginx on an alternative port #443 So far I have done:

[root@pok-beaker-server ~]# cat /etc/opscode/chef-server.rb
nginx['ssl_port'] = 10443
nginx['non_ssl_port'] = 10080
nginx['url'] = "https://chef.url.com:10443/"

Then reconfigure and in /var/opt/opscode/opscode-erchef/sys.config:

When I try to authenticate in the interface, I'm able to type my user and password. However, I'm getting the error:

404
Oops. Page not found.
Check the address to see if it is spelled correctly.

or
if I try to go to Forgot Your Password:
I get 401

I'm able to see the users and the orgs well
[root@pok-beaker-servser ~]# sudo chef-server-ctl user-list
admin
ravanelli

One doubt I have is,

My url is different from my hostname, and I can see after the reconfigure it gets the hostname for some vars as actions_fqdn /var/opt/opscode/opscode-erchef/sys.config and server_name in nginx https is that ok?

We is my log as well:

[root@pok-beaker-server ~]# tail -f /var/log/chef-manage/web/current
2019-03-29_13:58:18.42463 /opt/chef-manage/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/exe/bundle:22:in <top (required)>' 2019-03-29_13:58:18.42463 /opt/chef-manage/embedded/bin/bundle:23:inload'
2019-03-29_13:58:18.42463 /opt/chef-manage/embedded/bin/bundle:23:in `'
2019-03-29_13:58:18.42612 I, [2019-03-29T09:58:18.426022 #27275] INFO -- : Rendered errors/error_500.haml within layouts/outside (0.2ms)
2019-03-29_13:58:18.42792 I, [2019-03-29T09:58:18.427815 #27275] INFO -- : Rendered shared/_header.html.erb (0.6ms)
2019-03-29_13:58:18.42864 I, [2019-03-29T09:58:18.428536 #27275] INFO -- : Rendered shared/_footer.html.haml (0.5ms)
2019-03-29_13:58:18.42931 I, [2019-03-29T09:58:18.429212 #27275] INFO -- : Rendered layouts/_client_config.html.erb (0.5ms)
2019-03-29_13:58:18.42964 I, [2019-03-29T09:58:18.429543 #27275] INFO -- : Rendered shared/_js.html.erb (0.2ms)
2019-03-29_13:58:18.42986 I, [2019-03-29T09:58:18.429752 #27275] INFO -- : Rendered shared/_marketo.html.erb (0.1ms)
2019-03-29_13:58:18.43015 I, [2019-03-29T09:58:18.429998 #27275] INFO -- : Completed 401 Unauthorized in 52ms (Views: 4.6ms)

Thanks in advance!

0 Likes