how to redirect panel.mydomain.com to login page?

7 posts / 0 new
Last post
#1 Wed, 05/26/2010 - 00:47
machinakias

how to redirect panel.mydomain.com to login page?

Hello everyone! i'd like to ask you a question.. Here is what i need.....i need my clients to go to a page like panel.mydomain.com and see the login screen of virtualmin...then they'll give their password and login to their own virtual server...

how can i do it? got any ideas?

Wed, 05/26/2010 - 09:12
andreychek

Howdy,

What if, rather than "panel.mydomain.com", you used "admin.mydomain.com" -- would that do what you're after?

Because that would already work today :-)

If you go to admin.any_domain_on_your_server.com, it redirects to the Virtualmin login page.

-Eric

Wed, 05/26/2010 - 11:52
machinakias

Gee.....Thanks Eric!!! you saved my day....didn't know that was so easy.... (is it anywhere in the documentation and i missed it or not?)

Anyway,case is closed!Greetings from Greece!!!

Wed, 06/09/2010 - 07:04
machinakias

oh well.a few minutes ago,i tried to access admin.mydomainname.com from my LAN,but no luck... the other option is to hit mydomainname.com:10000 to see it from my lan. (i 'm not sure if admin.mydomainname.com works from another pc....somewhere else..)

i have to say that i did a manual installation of webmin-virtualmin and the needed components,because i 'm trying ubuntu 10.04 server now......got any ideas?

Wed, 06/09/2010 - 09:27
andreychek

Well, having a server on your LAN behind a NAT router brings an entirely new set of issues... you then have both internal and external IP addresses in use. That may be causing some of the problems you're seeing, as most routers can't route traffic to the external IP address when on the LAN. That is, if you're on the LAN, and attempt to browse to the external IP, it usually appears to hang.

It's hard to say for certain what the issue is though -- if you give us an example of a domain you're having trouble with, I can tell you if it works externally :-) You can always edit your post when this is all working, and remove the domain name later if you're concerned about people seeing it.

-Eric

Mon, 09/06/2010 - 11:42
cddrummer

how can I turn it OFF?

admin.mydomain.com redirect. dont want anyone there, or google indexing it.

thanks!

Mon, 09/06/2010 - 23:18 (Reply to #6)
andreychek

You can prevent new sites from getting that redirect by going into System Settings -> Server Templates -> Default -> Apache Website, and disabling the "Redirect admin.domain to Virtualmin" option.

For existing sites, the only way to disable that would be using the Virtualmin command line tools.

You can see the options available to you by running "virtualmin delete-redirect" on the command line as root.

-Eric

Topic locked