IIS Bindings - win server



could you please explain to me how can I change IIS bindings in Windows server?

I have tried to run:
iis_site “app_name” do
action :config
site_id 2
bindings 'http/:81:,https/:443:'
protocol :http
port 81
path "D:\Apps\app_name"
site_name "app_name"
application_pool "app_name"
action [:add,:start]

But port stays the same as 80 and even though the 443 header is set the certificate is not assigned to the header.

do you have any ideas? :slight_smile: