The main.domain.net should go to the demo.domain.net
Make a second server with a demo.domain.net and put the module on it.
Do everything according to the module instructions.
When you're done and set up, just switch the domain. And correct the settings.