Примерный конфиг Nginx для неск доменов. Он же у вас как обратный прокси, верно?
#Redirect All HTTP
server {
listen 80;
server_name _;
return 301 https://$host$request_uri;
}
#PROXY
#
#Nextlcoud
server {
listen 443 ssl http2;
server_name soundpartner.domain.ru;
keepalive_timeout 70;
ssl_certificate /etc/letsencrypt/live/domain.ru-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/domain.ru-0001/privkey.pem; # managed by Certbot
# set max upload size and increase upload timeout:
client_max_body_size 10G;
client_body_timeout 300s;
fastcgi_buffers 64 4K;
location / {
proxy_pass http://localhost:8083;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache off;
#Xibo
server {
listen 443 ssl http2;
server_name xibo.domain.ru;
keepalive_timeout 70;
client_max_body_size 10G;
ssl_certificate /etc/letsencrypt/live/domain.ru-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/domain.ru-0001/privkey.pem; # managed by Certbot
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
#Zabbix
server {
listen 443 ssl http2;
server_name zabbix.domain.ru;
keepalive_timeout 70;
client_max_body_size 10G;
ssl_certificate /etc/letsencrypt/live/domain.ru-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/domain.ru-0001/privkey.pem; # managed by Certbot
location / {
location / {
proxy_pass http://192.168.121.2:8081;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}