How do u setup a website on the Virtualmin domain?

How can I setup a website on the main domain utilized by the Virtualmin?

I notice that when I go to that domain, it is just redirecting to one of my virtual domains.

-Graham

How can I setup a website on the main domain utilized by the Virtualmin?

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,troubleshooting_common_problems/#the_wrong_site_shows_up

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).

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