<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=IBM+Plex+Sans:wght@400;500;600&family=Instrument+Sans:wght@600;700&family=Noto+Sans+Georgian:wght@400..700&display=swap"> Skip to content
Binwi logo

Edit your nginx config

In the examples, svm123 is your username and SERVER_IP is your server address — both are on the Access tab of your SVM in the console.

Your sites are in ~/nginx/conf.d/*.conf and the main file is ~/nginx/nginx.conf. Add a server block with its own server_name for each extra domain:

# ~/nginx/conf.d/default.conf
server {
    listen unix:/run/svm/svm123/nginx.sock default_server;   # keep this line
    server_name _;
    root /home/svm123/www/public;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
}
svm-nginx-test                     # check the config
systemctl --user reload svm-nginx  # apply it (tests again first)

Every server block must keep the listen unix:/run/svm/… line — that socket is how traffic reaches you. A reload that fails its test keeps the running config, so a typo does not take the site down.