Page 1 of 1
Panel link for clients
Posted: Sun 18. Aug 2019, 15:56
by webmedia
Hello, I'm trying to set for every new created user to get the link for keyhelp panel but automaticly without manually making subdomain and redirecting it to my panel link.Is it possible somehow to be domain.com/panel and to redirect to my serveer/panel link?
Re: Panel link for clients
Posted: Mon 19. Aug 2019, 00:06
by nikko
KH use a FQDN -not a subdomain- for the server and for login, like e.g. server.domain.com.
Every new created user get an email with this loginlink and the creditals.
Re: Panel link for clients
Posted: Mon 19. Aug 2019, 14:07
by webmedia
So I can't make it automaticly like user has a domain example.com to be panel.example.com?
Re: Panel link for clients
Posted: Mon 19. Aug 2019, 14:42
by Alexander
You can not do this automatically out of the box.
---
As a starter, some ideas - depending on your setup they might not be suitable / not complete!
If you want to go the "Path" way (eg.
https://client-domain.com/keyhelp -> redirection to KeyHelp login):
You could create a cronjob, which regularly iterates over all user domain target folders (/home/users/*/www/...), and do either 1) or 2).
1) create a folder keyhelp/. Then put an index.php file into the created keyhelp/ folder with the content:
Code: Select all
<?php
header('Location: https://<URL TO YOUR LOGIN>');
2) create a .htaccess with the content:
Code: Select all
RewriteEngine On
RewriteRule ^keyhelp$ https://<URL TO YOUR LOGIN> [R=302,NE,L]
Re: Panel link for clients
Posted: Thu 22. Aug 2019, 16:32
by webmedia
Great! Thanks for the info, do you have any example just to see how it goes with cronjob.