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

Followup #91: Add filename option nginx_vhosts #105

Merged
merged 6 commits into from
Jun 3, 2017

Conversation

oxyc
Copy link
Contributor

@oxyc oxyc commented Jun 3, 2017

One solution of how we could fix the problem brought forward here #91 (comment). Currently it's not possible to create a redirect from http -> https as the domain names would be identical and therefore the second vhost file would overwrite the first one.

I also improved the README example so it shows a more advanced, but very common scenario where you want to redirect all http traffic to https, as well as redirect www.example.com to example.com.

Any better ideas?

@oxyc oxyc changed the title Followup #91: Add vhost_filename option. Followup #91: Add filename option nginx_vhosts Jun 3, 2017

- name: Install dependencies.
package: name=curl
package: name=curl state=present
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, how did that slip past!?

@geerlingguy
Copy link
Owner

I like this option more—it is nice having the server configs broken out into separate files, and this allows that to happen with multiple server definitions for the same domain.

@geerlingguy geerlingguy merged commit 41f9d4f into geerlingguy:master Jun 3, 2017
h3po pushed a commit to h3po/ansible-role-nginx that referenced this pull request Aug 13, 2020
Followup geerlingguy#91: Add `filename` option `nginx_vhosts`
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

Successfully merging this pull request may close these issues.

2 participants