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

Add a "www" version in "HTTP Redirect" server block #39

Closed
rafaelfess opened this issue Nov 22, 2018 · 1 comment
Closed

Add a "www" version in "HTTP Redirect" server block #39

rafaelfess opened this issue Nov 22, 2018 · 1 comment

Comments

@rafaelfess
Copy link

The "HTTP Redirect" block is missing a "www.example.com" version of the domain. I've encountered problems on redirecting without it.

server_name .{{ domain() }};<!--

It could be something like this: (but is needed to verify if the "www" is checked)

server_name .{{ domain() }} www.{{ domain() }};<!--

File: public/templates/conf/sites-available/example.com.conf.html
Line: 200

@0xb4lint
Copy link

According to NGINX docs: http://nginx.org/en/docs/http/server_names.html
Wildcard names
A special wildcard name in the form “.example.org” can be used to match both the exact name “example.org” and the wildcard name “*.example.org”.

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

2 participants