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

Subdomain without ssl certificate when domain ssl certificate #573

Closed
pvlg opened this issue Sep 17, 2016 · 4 comments
Closed

Subdomain without ssl certificate when domain ssl certificate #573

pvlg opened this issue Sep 17, 2016 · 4 comments

Comments

@pvlg
Copy link

pvlg commented Sep 17, 2016

I have domain mydomain.com with ssl certificate. I want to use the domain sub.mydomain.com without a certificate.

How can I do it?

I replaced the row

{{ $vhostCert := (closest (dir "/etc/nginx/certs") (printf "%s.crt" $host))}}

to

{{ $vhostCert := printf "%s.crt" $host}}

I think it would be a good idea to add a options to the configuration, but do not know how best to do it.

@wader
Copy link

wader commented Sep 25, 2016

Hi, so you want SSL for mydomain.com but not for sub.mydomain.com? I think you can do kind of a hack by settings CERT_NAME= (empty string) for the sub.mydomain.com container.

@kamermans
Copy link
Contributor

We have HTTPS_METHOD=nohttp to disable the HTTP site entirely, I could add HTTPS_METHOD=nohttps to disable HTTPS if this is a common need.

@wader
Copy link

wader commented Oct 1, 2016

@kamermans yes i think that would be nice

@tkw1536
Copy link
Collaborator

tkw1536 commented Apr 10, 2022

Seems resolved by the above, closing

@tkw1536 tkw1536 closed this as completed Apr 10, 2022
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

4 participants