Default server not working

3 posts / 0 new
Last post
#1 Thu, 07/13/2006 - 12:33

Default server not working

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.

Thu, 07/13/2006 - 15:59

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.

Thu, 07/13/2006 - 19:07 (Reply to #2)
Joe's picture

Hey Chris,

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!

Topic locked