If I understand correctly you scenario, it seems to me that you don't need several domains.
Let me rephrase your needs, to see if I've understand correctly: you want all your content stored on the MoodleBox, including some resources that are not integrated in Moodle and that your clients can access it via a browser when connected to the MoodleBox.
Can you confirm this? If not, please be more specific.
In this case, you can just use this already published tip, assuming that your content is HTML static content: (I'm assuming too you're an expert in system administration 😀 .)
- Create a new folder in the MoodleBox home folder
myresources where to host your ressources. (If you want to remain simple, don't try to put this in
/var/www/html, since in this case you'll have to configure multiple nginx vhosts and domains, which is possible, but clearly beyond MoodleBox intended usage. If you'd like to go this way, please get help from the nginx community.)
- Transfer all your content from AWS in you newly created folder
/home/moodlebox/myresources via SFTP.
- Create a symlink your content to
sudo ln -s /home/moodlebox/myresources /var/www/moodle/myresources.
- At this point, you've already access your external content via a browser, using URL http://moodlebox.home/myresources.
- Export your Moodle courses from your current Moodle server.
- Import your exported courses in the MoodleBox.
- Change all Moodle links using Moodle's Search and replace tool.
Result: everything available through the same server and domain.
Now to your questions:
- I don't understand what you mean by mirroring a domain.
- Yes, see above.
- See above, no need of other domain name.
- If I understand correctly, see above, using Search and replace tool.
Good luck :-)