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

Include ssl settings in rewrite_www server. #548

Merged
merged 1 commit into from
May 7, 2015

Conversation

joehillen
Copy link
Contributor

fixes #542

@3flex 3flex mentioned this pull request Apr 10, 2015
5 tasks
@3flex 3flex added the bug Something isn't working label Apr 15, 2015
@3flex
Copy link
Contributor

3flex commented May 6, 2015

@joehillen this looks good. Could you please rebase? I've also added a comment that will address the test failure you experienced. Thanks!

@@ -2,6 +2,9 @@
server {
listen <%= @listen_ip %>:<%= @ssl_port %> ssl;
server_name www.<%= @server_name[0].gsub(/^www\./, '') %>;

<%= scope.function_template(["nginx/vhost/vhost_ssl_settings.erb"]) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you put this below the return 301 line? That should fix the test failure.

@joehillen
Copy link
Contributor Author

@3flex rebased and tests pass.

3flex added a commit that referenced this pull request May 7, 2015
Include ssl settings in rewrite_www server.
@3flex 3flex merged commit 677ea57 into voxpupuli:master May 7, 2015
slm0n87 pushed a commit to slm0n87/puppet-nginx that referenced this pull request Mar 7, 2019
Include ssl settings in rewrite_www server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSL issue with rewrite_www_to_non_www parameter
2 participants