You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server {
listen 80;
server_name example.com;
...
}
Would be amazing if this could be added to Ansible in order to configure this in nginx automatically.
Same applies to HTTPS, right? Also, is it possible to enter subdomains in the Ansible script for gettings certificates via certbot for both, www.example.com as well as example.com itself.
Currently when opening browsing the www. version nginx default page appears. :)
The text was updated successfully, but these errors were encountered:
While this seems like a good example, it is actually more trouble than it's worth.
As now that it's 2023, not everyone uses the full domain.
While it's true that for some this would be a benefit, the majority (looks at instance federation list) are already using subdomains. adding www.subdomain.example.com as a redirect seems redundant. Unless! If browsers still try www automatically for existing subdomains then this would be needed.
If we want to tackle this issue, having a section behind an {% if www_enabled is true %} and have it as www.{{domain}} would suffice
NGINX forwarding
It's common to have a server blocks regarding forwarding like this :)
Would be amazing if this could be added to Ansible in order to configure this in nginx automatically.
Same applies to HTTPS, right? Also, is it possible to enter subdomains in the Ansible script for gettings certificates via certbot for both,
www.example.com
as well asexample.com
itself.Currently when opening browsing the www. version nginx default page appears. :)
The text was updated successfully, but these errors were encountered: