The first isn't covered by Flarum, this is evident when you try to visit www.discuss.flarum.org, it's actually a dead link. Some servers are configured to load it, but Flarum will not work unless the configuration URL is set to www.yourdomain.tld rather than just yourdomain.tld. You would need to make Flarum work across subdomains which would likely require an extension.