I have two physical servers (soon to be three), running Virtualmin. (debian.sapphire-web.com & hx202.sapphiresolutionsltd.com - soon to add hx201.sapphiresolutionsltd.com and switch debian.sapphire-web.com to hx200.sapphiresolutionsltd.com)
Cloudmin will be installed on the hx200.sapphiresolutionsltd.com (currently testing it on the current hardware configuration which will be used on, but under the host name of debian.sapphire-web.com).
I want to force my clients to access their account and manage their web sites, by logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.
I would also like there to be a way for clients to create a hosting account by filling out a web form and then logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.
I'm sure your Virtualmin/Cloudmin system can facilitate this, but I'm not sure how to make it happen.
I also want to force my clients to log in to web mail via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.
Comments
Submitted by andreychek on Tue, 08/03/2010 - 23:17 Comment #1
I'm passing this along to Jamie for further comment... however, he's in Australia now, so there may be a delay in his response.
However, here's some thoughts in the meantime --
What you're looking to do is actually fairly difficult, it may not be possible to do it as you asked.
Here's some thoughts on how to tackle some of your questions --
I would also like there to be a way for clients to create a hosting account by filling out a web form and then logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com). However these clients may have accounts on either of three systems.
One of the things you may want to look into is the WHMCS application, provided by whmcs.com. It has the ability to provision new hosting accounts across any number of Virtualmin servers. It uses the Virtualmin API to accomplish that. Using it, you could have a web form where a user can sign up for a web hosting account, and it can setup the account on one of your three servers.
I want to force my clients to access their account and manage their web sites, by logging in via a log-in form on my company web site (to be hosted on hx200.sapphiresolutionsltd.com)
I don't know of a good way to make that work as such.
However, remember that by default, Virtualmin sets up a redirect for every domain, so that going to "admin.customer_domain.tld" redirects to the Virtualmin login page on their particular server. You're able to tweak where that redirect goes by going into System Settings -> Server Templates -> Default -> Apache Website, and setting "Redirect admin.domain to Virtualmin" to your desired URL.
I also want to force my clients to log in to web mail via a log-in form on my company web site
This is similar to the "admin.domain.tld" redirect... you can setup a "webmail.domain.tld" redirect.
I suspect that with those redirects, you'll have more luck redirecting to the Virtualmin and Usermin login forms rather than custom screens... and you can upload your own logo onto those login forms.
Submitted by JamieCameron on Wed, 08/04/2010 - 08:11 Comment #2
So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..
Submitted by bamajr on Wed, 08/04/2010 - 14:25 Comment #3
So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..
Yes Jamie, I don't really want my clients going to port 10000 or 20000 on their own domain to access their accounts. In fact, I want to block that ability altogether. I want clients to be forced to use my company web site to access their accounts (if need specific sub-domains to get this done, fine!).
But this is only about 1/3 of what I'm looking for. andreychek posted some interesting follow up which I haven't looked into yet, but...
I want people who hit my web site to be able to sign up for a web hosting account, access their account and check their email, all without leaving my company pages.
With my company web site being found at http://www.sapphiresolutionsltd.com/ I understand that I may have to set up separate sub-domains for this to happen.
I could set up:
https://signup.sapphiresolutionsltd.com/ for new customers to sign up.
and...
https://myacct.sapphiresolutionsltd.com/ for current customers to log in to their hosting profile.
and...
https://webmail.sapphiresolutionsltd.com/ for current customers to check their email.
This all kind of leads in to the other topic I had asked about at: https://www.virtualmin.com/node/15180
I would like to put all these sub-domains on one Virtualmin server with the main domain and have it all covered by one SSL Certificate.
Submitted by JamieCameron on Wed, 08/04/2010 - 20:08 Comment #4
Ok, in that case you would either need to write your own PHP apps that call the Virtualmin / Cloudmin API, or see if some other package like WHMCS can integrate with Virtualmin to provide this functionality ..
Submitted by bamajr on Sun, 08/08/2010 - 10:58 Comment #5
So are you looking for a way to have a single login form that redirects users to the correct Virtualmin instance based on which system their domain / account is on? Because I have actually already developed a module that does exactly that ..
How does the module you refer to here work?
Submitted by JamieCameron on Sun, 08/08/2010 - 18:38 Comment #6
Yes, the login redirector module works fine .. it is designed for user with Cloudmin, which already knows what domains and usernames exist on each system that it manages, and so can do the redirect properly.
Submitted by bamajr on Mon, 08/09/2010 - 15:03 Comment #7
I understand it works as a redirector.
Where do I get it to try?
Submitted by JamieCameron on Mon, 08/09/2010 - 16:27 Comment #8
I can create a package for it .. which OS are you running your Cloudmin master system on?
Submitted by bamajr on Tue, 08/10/2010 - 15:56 Comment #9
Debian 5.0 is the OS.
Submitted by JamieCameron on Wed, 08/11/2010 - 02:10 Comment #10
I will email you the module file ..
Submitted by bamajr on Wed, 08/11/2010 - 07:52 Comment #11
I'll be looking for it - Thanks!
Submitted by JamieCameron on Wed, 08/11/2010 - 14:47 Comment #12
I sent the email already .. let me know if you got it OK, and if the module works.