anthony bu gisti düzenledi . Düzenlemeye git
1 file changed, 1 insertion, 1 deletion
mysrv.conf
@@ -1,7 +1,7 @@ | |||
1 | 1 | server { | |
2 | 2 | listen 80; | |
3 | 3 | listen [::]:80; | |
4 | - | server_name example.com # replace with your domain | |
4 | + | server_name example.com; # replace with your domain | |
5 | 5 | ||
6 | 6 | access_log /var/log/nginx/access.log; | |
7 | 7 | error_log /var/log/nginx/error.log; |
anthony bu gisti düzenledi . Düzenlemeye git
1 file changed, 15 insertions
mysrv.conf(dosya oluşturuldu)
@@ -0,0 +1,15 @@ | |||
1 | + | server { | |
2 | + | listen 80; | |
3 | + | listen [::]:80; | |
4 | + | server_name example.com # replace with your domain | |
5 | + | ||
6 | + | access_log /var/log/nginx/access.log; | |
7 | + | error_log /var/log/nginx/error.log; | |
8 | + | #client_max_body_size 100M; | |
9 | + | ||
10 | + | location / { | |
11 | + | proxy_pass http://127.0.0.1:8080; # port on host bound to actual http-server | |
12 | + | } | |
13 | + | } | |
14 | + | ||
15 | + | # if `curl -i <your domain>` shows 200 then you can use `certbot --nginx` to protect service with SSL |