Answer the question
In order to leave comments, you need to log in
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;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question