fix default hostname
This commit is contained in:
parent
3eec1f4b42
commit
f6435cfd24
@ -1,14 +1,14 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name {{ ansible_fqdn }};
|
||||||
|
|
||||||
return 301 https://$server_name$request_uri;
|
return 301 https://$server_name$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name localhost;
|
server_name {{ ansible_fqdn }};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/vhosts/default;
|
root /var/www/vhosts/default;
|
||||||
|
Loading…
Reference in New Issue
Block a user