Browse Source

[nginx] Add default subdomain for nginx

Colin Powell 3 năm trước cách đây
mục cha
commit
8397c76d1b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ansible/roles/nginx/templates/nginx.conf.j2

+ 1 - 1
ansible/roles/nginx/templates/nginx.conf.j2

@@ -14,7 +14,7 @@ http {
 
     server {
         listen 80;
-        server_name *.{{ansible_hostname}}.local;
+        server_name www.{{ansible_hostname}}.local;
         root   /usr/local/www/;
 
         include /usr/local/etc/nginx/locations/*.conf;