Googling "hidden service multiple ports" instantly answers every single one of your questions, and the answers are rather obvious.
Who would've thought that adding a new port is as easy as just adding another port definition?
Honestly, if this is a problem you shouldn't be trying to host hidden services by yourself anyway. Even if Tor took literally one click to set up the other software will still fuck you, like apaches mod-status.
How do I get multiple .onion domains and how do I back up my keys so I can keep my domain?
Still, there are a lot of things that aren't very evident. It's just a bad experience in general.
We can have obscure documentation only accessible on the tor website, or when you install tor you could get a nice command interface like something presented by UFW.
One will lead to better configurations, the other will lead to mistakes and loss of data.
Repeat HiddenServiceDir
> how do I back up my keys so I can keep my domain?
Backup the contents of HiddenServiceDir
I think the problem here is simply that some people refuse to read documentation, even after they are provided with a direct link to it. Sounds about right from my personal experience with online tech communities.
Making these things too easy results in very real damage when somewhat clueless people think they're capable of operating these things by themselves.
You google "hidden service multiple ports" (sans quotes), and the very first result answers every single one of his questions.
You only need to scroll down the page to see the super self explanatory config examples.
HiddenServiceDir /usr/local/etc/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:8080
HiddenServiceDir /usr/local/etc/tor/other_hidden_service/
HiddenServicePort 6667 127.0.0.1:6667
HiddenServicePort 22 127.0.0.1:22
If that doesn't tell you how to set up multiple hidden services and multiple ports, you should seriously get someone else to set up the hidden service for you. Some people just aren't competent enough to do it, just as not all of us are heart surgeons.If you can't configure Tor, you certainly won't be able to sufficiently harden the applications that you're trying to hide.