Answer the question
In order to leave comments, you need to log in
How to set location for 1 domain?
Guys, my task is to transfer the site to VPS.
Now I stumbled on setting up nginx.
I have the following config for the domain:
server {
listen 00.00.00.00:80;
server_name site.ru;
root /home/admin/web/site.ru/public_html;
index index.php index.html;
location / {
try_files $uri $uri/ =404;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/site.ru/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/site.ru/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question