I have a couple of followup notes:
a. I created my first virtual server abc.com and added a few pages, site works fine
b. I added pqr.com as alias of abc.com. when I visit pqr.com, abc.com shows up.
c. If I open my server hostname (a.com), it shows up abc.com
I am concerned about point c. Why is that happening?
I have more than 100 domains which I would like to park (create alias). Does Webmin/ VirtualMin have a way to setup aliases in bulk or through the shell?
I am not quite comfortable with the idea of manually adding each domain one after the other. Very monotonous and time consuming.
You can add them using the command line if you like… you can see all the possible options for creating a Virtual Server by running the command “virtualmin create-domain”.
An example of how to create an alias would be to use this command:
You can use the Virtualmin command line to create aliases, though you do need to have an existing domain name for it to be an alias of.
So, if you have an existing Virtual Server named “existing-domain.com”, and you want to add an alias server named “alias-domain.com”, you could do so using this command:
Well, I ran a test of that before posting it, and that worked for me… but I do suppose it’s possible I got the parameters mixed up when I copied it in here
It’ll throw an error if it isn’t correct – so give it a try and let us know what works for you