Is VirtualMin The Solution To My Problem?

16 posts / 0 new
Last post
#1 Thu, 05/15/2008 - 07:25
P4rD0nM3

Is VirtualMin The Solution To My Problem?

Hello, I have one domain name (www.joinpgn.com) which is a gaming community website. Right now we have one main website portal which is in var/www/html. My os is Fedora 8.

I was wondering if Virtualmin (GPL) is my solution to my problems, here they are.

  1. Create multiple websites using one domain thorugh name based sub domains via apache.

The domain www.joinpgn.com resolves to 208.69.150.249.

So like right now if I type http://208.69.150.249, it shows the www.joinpgn.com website.

I don't want it to do that, instead I want http://208.69.150.249 to just display the Apache page saying that Apache is installed. But when I type www.joinpgn.com, it goes to that JoinPGN.com website.

And I want it to be under var/www/html/username/joinpgn

And then if I type...amxbans.joinpgn.com it'll go to var/www/html/username/joinpgn/amxbans

Is that possible?

I want to be able to create multiple users that can have their own multiple websites under one domain.

Except they get subdomains for each account. Thanks.

Fri, 05/16/2008 - 08:52
ronald
ronald's picture

virtualmin uses by default /home
i suppose you can change that but why would var/www/html be preferred.

anyway VM lets you create either subdomains or subservers.
subservers are pretty strong as they in fact act as toplevel servers (this seems what you want).

meaning you can have
/home/mysub.domain.com
/home/yoursub.domain.com
/home/oursub.domain.com
/home/hissub.domain.com

they can all have their own login/email/ftp/passwords/etc

as where a subdomain would be in
/home/domain.com/domains/mysub.domain.com using the credentials of the topdomain (which you dont want with multiple users.)

you IP always goes to the first with VM created domain. I suppose you can change that but I dont know how.

Fri, 05/16/2008 - 09:26 (Reply to #2)
ronald
ronald's picture

Im not sure.
Normally when installing virtualmin, it should be done on a clean system.
It seems you had a domain on your box already in the /var directory whereas the subdomain is prolly created in the /home directory

When you have a clean system, then installed virtualmin and as a first domain you would create a server for joinpgn.com (that's default procedure)

After which you can create as many subservers as you want.

I don't want to give you ill advice on how to move the domain/re-point it so I like to suggest you create a support ticket at http://www.virtualmin.com/bug-tracker/ where Jamie/Joe can advice you professionally on this or wait if they drop into this thread :)

Fri, 05/16/2008 - 09:54 (Reply to #3)
P4rD0nM3

Well my solution right now is just replace the domain pgn.joinpgn.com with just joinpgn.com. Looks like it's working.

Fri, 05/16/2008 - 12:50 (Reply to #4)
Joe
Joe's picture

You don't want sub-servers if you want different users to manage the accounts.

Sub-servers are for making more servers owned by the same person.

For example, say I've got a virtualmin.com virtual server, and I want a software.virtualmin.com server--but I want the same guy to manage it...I create a sub-server.

If you want a different owner, you want a new virtual server (a regular old virtual server--no "sub" or "alias" at all).

Names (like sub.domain.com and bob.domain.com and domain.com and sub.sub.sub.domain.com) do not matter to Virtualmin with regard to whether the account is a sub-server or a virtual server.

It is this confusion that made us remove sub-domain accounts, by default, in Virtualmin Professional--because people thought that means if you wanted a domain named sub.domain.com you needed to make a sub-domain account, which is not correct at all. The sub-domain account type was an atrocious UI failure, and we've been paying for it ever since. ;-)

So, choose the type of virtual server you want based on who you want to <i>own</i> the domain, and <i>not</i> on what the name of the domain happens to be (because names don't matter). If you want to create a new administrator, create a virtual server. If you want to allow an existing user to manage the new domain, create a sub-server. Never create a sub-domain account, as they are broken by design and will be going away eventually (we'll hide the option for a year or two first, and then the whole concept will go away and we'll provide tools to convert anyones remaining sub-domains to sub-servers).

Does that clear things up?

--

Check out the forum guidelines!

Fri, 05/16/2008 - 09:55 (Reply to #5)
P4rD0nM3

Oh and by clean system do you mean just Virtualmin? Because I have Webmin first and then installed Virtualmin in it.

And yeah at first I put everything in /var/www/html/ (WHICH IS A BAD IDEA HEHE).

Fri, 05/16/2008 - 16:31 (Reply to #6)
ronald
ronald's picture

come to think of it, I have indeed a few top level servers named blabla.domain.com

i never create subdomains, but use subservers instead..

Fri, 05/16/2008 - 18:55 (Reply to #7)
P4rD0nM3

But how come I can't create a www.joinpgn.com account?

Fri, 05/16/2008 - 19:25 (Reply to #8)
Joe
Joe's picture

<div class='quote'>But how come I can't create a www.joinpgn.com account?</div>

Wait...are you literally trying to name it &quot;www.joinpgn.com&quot;? Don't do that! The www is the web portion of a full virtual server--you want to create &quot;joinpgn.com&quot; and let Virtualmin create www, mail, etc.

--

Check out the forum guidelines!

Fri, 05/16/2008 - 08:59
P4rD0nM3

Hello ronald, I was able to get everything working. I was just wondering now why I can't create a virtual server for like the main domain which is www.joinpgn.com?

How do I go about creating it? I've created rodoabad.joinpgn.com and it works perfect. But I can't create www.joinpgn.com, I have to like create pgn.joinpgn.com to make it work for joinpgn.com.

Fri, 05/16/2008 - 18:05
kevco

[color=#000080]Joe, if as you say, &quot;Never create a sub-domain account, as they are broken by design and will be going away eventually&quot;...I have a bug for you.

Not long ago I ran into a problem, posted here, whereby two domains, one is domain.com and the other domain.net, ran into a conflict in naming the database and user names. We overcame this by abridging the PREFIX in specifying a non-default database name on the sub-server, and reconfiguring the login rules regarding use of domain names. But also, I had to build the second domain as a sub-domain to the first; VirtMin would not let me build the second domain as a top level server, which was my first choice.

Just wanted to make you aware of this so you can consider it in your plans to eliminate sub-domains.[/color]

Fri, 05/16/2008 - 18:44
kevco

[color=#000080]Oooops, my bad! In the post above, where Joe mentioned sub-DOMAINS being phased out, I read sub-SERVERS. As Rosanna Rosannadanna used to say, &quot;Never mind.&quot;[/color]

Fri, 05/16/2008 - 19:24 (Reply to #12)
Joe
Joe's picture

kevco, the behavior you saw was, or is, a bug. I think I responded on that thread already with a request to try it on 3.57 and report back if it failed (and if I didn't, I meant to).

--

Check out the forum guidelines!

Fri, 05/16/2008 - 21:09
P4rD0nM3

Yeah. Ok, but if I made joinpgn.com, then what would my username be?

Fri, 05/16/2008 - 21:30 (Reply to #14)
Joe
Joe's picture

joinpgn, or if another virtual server already exists with joinpgn, it would be joinpgn.com. (There are many configurable options with regard to naming conventions, but this is the default.)

--

Check out the forum guidelines!

Wed, 06/25/2008 - 09:19
P4rD0nM3

Hey, thanks guys. I got it all working now.