I'm a beginner with node.js. Currently I'm using node.js + express + vhost to host different domains like http://example1.com, http://example2.io etc.
How can I provide a different sitemap for each domain (http://example1.com/sitemap.xml , http://example2.io/sitemap.xml) ?
I see this sitemap-generating framework : sitemap which is not bad actually but I can't figure out how to use it with virtual hosts.
And the same question for robots.txt files for each domain.
Ok, I get it. sitemap.js do the trick. My code: