T
T
thisall2020-11-10 13:09:12
Nginx
thisall, 2020-11-10 13:09:12

How to write config for dynamic subdomains with node?

I have a generated subdomain with node. Example http://5fa70a28cedbc3.21344471.example.com/.

I have written a config for dynamic subdomains without nodes

server {
    server_name *.example.com;

    listen 443 ssl;
    
    root /var/www/platforms/$host;
    index index.php index.html index.htm;

    location / {
        root /var/www/platforms/$host;
        autoindex off;
    }
}


How to write a config for such subdomains?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question