server { listen 80; listen 443 ssl; server_name a2s.su; ssl_certificate fullchain.pem; ssl_certificate_key privkey.pem; root /home/alex/Sites/a2s.su/www; location /api/ { proxy_pass http://127.0.0.1:50009; } }