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

Use first server name for non-www redirects to prevent issues with naming of vhosts within defined types. #310

Merged
merged 1 commit into from
Jun 26, 2014

Conversation

kalmanolah
Copy link
Contributor

If I were to define a type named reverse_proxy_vhost and name the nginx vhosts inside reverse_proxy_${name} while providing custom values for server_name and setting rewrite_www_to_non_www to true, it would result in something like reverse_proxy_mydomain.net as the server name.

This PR resolves that.

@jfryman
Copy link
Contributor

jfryman commented Jun 24, 2014

Can you please rebase?

…ming of vhosts within defined types.

Signed-off-by: Kalman Olah <kalman@inuits.eu>
@kalmanolah
Copy link
Contributor Author

@jfryman there

@jfryman
Copy link
Contributor

jfryman commented Jun 26, 2014

Super! Thanks for the add!

jfryman pushed a commit that referenced this pull request Jun 26, 2014
Use first server name for non-www redirects to prevent issues with naming of vhosts within defined types.
@jfryman jfryman merged commit 8203f55 into voxpupuli:master Jun 26, 2014
@kalmanolah kalmanolah deleted the rewrite_non_www branch June 26, 2014 07:59
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Use first server name for non-www redirects to prevent issues with naming of vhosts within defined types.
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