These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Default server not working on the new forum.
I've installed VMPro and set up 'Automatically create alias domain' on the default template so I can see virtual domains in the form of virtualdomain.mydomain.tld. I've now notice that the default server now points to the first virtual site I have set up, ignoring /var/www/html. I've reverted from the 'crate alias domain but problem still remains. Any thoughts?
When 'Automatically create alias domain' is selected what directives are set in the .conf files, or is there another mechanism?
Help most appreciated.
Just spotted that this is perfectly normal under VMPro. Sorry to create noise. Would still like to know what directive the create alias domain instruction invokes.
The default domain stuff is standard Apache behavior--and is unrelated to the alias server feature or anything in particular that Virtualmin has done.
The alias feature uses the ServerAlias directive. It just adds a single line to the new domain that you're creating--nothing complicated at all, but superior to the automatic virtual hosts that are more commonly used for this purpose because it is not pattern-based and also respects SuExec (thus significantly more secure).
Here's the doc for ServerAlias:
Check out the forum guidelines!