Answer the question
In order to leave comments, you need to log in
Wildcard domain not working for subdomain?
nginx.org/en/docs/http/server_names.html
https://serverfault.com/questions/249952/wildcard-...
https://stackoverflow.com/questions/12950572/nginx...
https:// serversforhackers.com/c/nginx-multi-tenancy
https://codex.so/resolving-subdomains-dynamically-...
server {
listen 80;
listen 443 http2 ssl reuseport;
server_name *.local.test.net;
server_name ~^(.*)\.local.test.net;
server_name ~^(?<subdomain>[^.]+)\.local.test.net;
server_name ~^(.*)\.local\.test\.net$ ;
server_name ~^(?<subdomain>.+)\.local\.test\.net local.test.net *.local.test.net;
ssl_certificate ...
ssl_certificate_key ...
root /var/www/test;
location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
rewrite ^(.*.php)/ $1 last;
}
This site can’t be reachedCheck if there is a typo in test.local.test.net.
DNS_PROBE_FINISHED_NXDOMAIN
Answer the question
In order to leave comments, you need to log in
DNS_PROBE_FINISHED_NXDOMAIN - This browser was unable to resolve the name subdomain.local.test.net into an IP address.
Add /etc/hosts IP address corresponding to subdomain.local.test.net
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question