This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
that's why Joe gave the URL, since "the wrong site shows up"
Basically Apache is looking at the first site mentioned in it's config.
What you can do is create the domain as -and website under- server.example1.com and put it in the first place in the <virtualhost> container of the httpd.conf
Virtualmin now has a domain order juggling feature to automatically put whatever single domain you choose as the "default" first in the list of Apache virtual hosts (since Apache doesn't have any notion of a "default" once you switch it to virtual hosting mode...it just serves out the first best match).
<div class='quote'>How can I setup a website on the main domain utilized by the Virtualmin?</div>
I have no idea what this means. Virtualmin has no concept of a "main domain".
Perhaps you're looking for this:
http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,tro...
--
Check out the forum guidelines!
I setup Virtualmin on server.example1.com.
I added two domains. www.example2.com and www.example3.com
now, I want to just put a simple website on server.example1.com so that domain looks nice, and has some information about my company.
However, I noticed that it is.. by default? redirecting to www.example2.com
I know I am terrible on explaining. I hope this helps and I appreciate the help!
-Graham
that's why Joe gave the URL, since "the wrong site shows up"
Basically Apache is looking at the first site mentioned in it's config.
What you can do is create the domain as -and website under- server.example1.com and put it in the first place in the <virtualhost> container of the httpd.conf
Virtualmin now has a domain order juggling feature to automatically put whatever single domain you choose as the "default" first in the list of Apache virtual hosts (since Apache doesn't have any notion of a "default" once you switch it to virtual hosting mode...it just serves out the first best match).
--
Check out the forum guidelines!
OK, That explains it. I got my two main websites working perfectly so I didnt want to goof anything up.
Thanks again! Virtulmin is amazing!
-Graham