Now I use one nginx config for many domains.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/user/default;
index index.php;
server_name _;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
}
I want to transfer sites to the https protocol, will use the CertBot.
Is it also possible to use one config for all domains? How to specify key paths for different domains?