wildcard-subdomains
wildcard-subdomains copied to clipboard
Can't access with web but can on local
Seem's like it brokes my express app, When I run curl on my server:
curl http://localhost:3000/
it logs:
ubuntu@ip-172-31-38-119:~/XX$ node bin/www
GET / 200 54.906 ms - 18413
but when trying to access server on other device with ip or domain:
GET / 404 3.179 ms - -
when I comment out the wildcard code it working
const wildcardSubdomains = require('wildcard-subdomains');
...
app.use(wildcardSubdomains({
namespace: 'sub',
whitelist: ['www'],
}));
couldn't figured out why it's happening.