Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 SSL Port #198

Closed
elmerfud opened this issue Dec 18, 2013 · 0 comments
Closed

IPv6 SSL Port #198

elmerfud opened this issue Dec 18, 2013 · 0 comments

Comments

@elmerfud
Copy link
Contributor

When using a configuration like this.

nginx::resource::vhost {
  'my_vhost':
    ensure => present,
    listen_ip => '0.0.0.0',
    ipv6_enable => true,
    ipv6_listen_ip => '::',
    use_default_location => false,
    ssl => true,
    ssl_cert => '/etc/nginx/my.crt',
    ssl_key => '/etc/nginx/my.key';
}

nginx::resource::location {
  'my_vhost-ssl_redirect':
    ensure => present,
    ssl => false,
    location => '/',
    location_custom_cfg => { 'return' => '301 https://$host$request_uri' },
    vhost => 'my_vhost';
  'my_vhost-proxy':
    ensure => present,
    ssl => true,
    ssl_only => true,
    vhost => 'my_vhost',
    location => '/',
    proxy => 'http://127.0.0.1:10001';
}

The module correctly creates configuration entries for IPv4 to have port 80 send redirect to the ssl site which listens on the default 443, but for IPv6 it does not. The IPv6 listen directive is the same in both server blocks.

I'm not sure the correct way to fix this for the module. There are listen_port and ssl_port directives but they are only used for IPv4, there is only a single ipv6_listen_port directive.

Would the appropriate fix be to either do away with the ipv6_listen_port and have it default to listen_port & ssl_port, or should there be an ipv6_ssl_port option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant