wildcard-subdomains icon indicating copy to clipboard operation
wildcard-subdomains copied to clipboard

Can't access with web but can on local

Open nusu opened this issue 6 years ago • 0 comments

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.

nusu avatar May 01 '18 06:05 nusu