madhusudanbabar / k-domains

A simple module to manage multiple subdomains with just one project
https://www.npmjs.com/package/k-domains
MIT License
52 stars 8 forks source link

Allow change to default "subdomain not found" behaviour #12

Closed tazaraz closed 3 years ago

tazaraz commented 3 years ago

Currently, k-domains redirects to the root domain if the domain specified is not found. // if the subdomain is not in the list of user provided domains, set the rootdirectory to root - domain given by the user Would it be possible to add an option to change this behaviour to just redirect to the error 404 page?

Ps. Thanks for leaving in at least some comments, I don't understand why large scale projects never have those. It made it lots easier for me to understand.