express-subdomain-handler
express-subdomain-handler copied to clipboard
How would the scenario: "Host subdomain on another web server"?
That'd be really handy to exclude a set routes for JS, IMG and others. That way sub-domains would be able include CSS, JS, and images without a new set of...
app.use( require('express-subdomain-handler')({ baseUrl: 'node.localhost', prefix: 'subdomain', logger: true }) ); app.get('/subdomain/mysubdomain/',some.somert) mysubdomain.node.localhost:1337 or mysubdomain.localhost:1337 doesn'T work either. what am i doing wrong? is it something with the version of expressjs?