add default site vhost
This commit is contained in:
parent
9eb51b728a
commit
c5febaefcf
|
@ -2,4 +2,5 @@ logs/*
|
|||
ssl/*
|
||||
sites-enabled/*
|
||||
!sites-enabled/example.conf.tplm
|
||||
!sites-enabled/http_redirect.conf
|
||||
!sites-enabled/http_redirect.conf
|
||||
!sites-enabled/default.conf
|
|
@ -0,0 +1,20 @@
|
|||
server {
|
||||
# listen 80 default_server;
|
||||
# listen [::]:80 default_server;
|
||||
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/live/softsols.ru/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/softsols.ru/privkey.pem;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue