“Hmmm, after already responding, I thought - if it doesn’t generate clean enough text for the templates - then why are we using it there?”
No, I didn’t mean to imply we’re using the editor that deals with tabs in the Server Templates page. It’s used in the website builder page–but is not safe to use for configuration files, as is (but it does handle tabs, I believe).
I was saying that the basic HTML text field that we’re using on that page does not handle tabs (as you’ve noticed–and it’s actually hard to get tabs in their, you’d have to copy paste them in, since tabbing in a text field takes you to the next element on the page rather than putting anything in the box). But I’m pretty sure plain ol’ spaces will work, they just don’t look as nice.
"just having a problem locating them - or wondering if they are in the db"
No, there is no db for them to be in. We’re flat file fanatics. (Some people, when presented with a problem involving data think, “I know, I’ll use a database”, now they have two problems. Virtualmin meta-data is so small and unrelated to other records that it’d be madness to put it into a database…that hasn’t stopped some of our competitors from doing so, but we’re not mad.)
Anyway, Server Templates are a special case of module configuration, and they use the standard Webmin module configuration functions to read and write them. So, you’ll find them in a file called “config” in the /etc/webmin/virtual-server directory. It’s not particularly pretty to look at, but you can safely inject tabs. I’m not sure exactly which option you’ll need, but it’s probably one of the bind_ options. Try inserting just a single nonsense word in the Server Templates editor, and then you can search for it in the config file and know you’ve got the right one.