Panel link for clients

Locked
webmedia
Posts: 21
Joined: Tue 7. May 2019, 11:37

Panel link for clients

Post 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?
nikko
Posts: 914
Joined: Fri 15. Apr 2016, 16:11

Re: Panel link for clients

Post 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.
The software said: Requires Win Vista®, 7®, 8® or better. And so I installed Linux.
webmedia
Posts: 21
Joined: Tue 7. May 2019, 11:37

Re: Panel link for clients

Post by webmedia »

So I can't make it automaticly like user has a domain example.com to be panel.example.com?
User avatar
Alexander
Keyweb AG
Posts: 3809
Joined: Wed 20. Jan 2016, 02:23

Re: Panel link for clients

Post 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]
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
webmedia
Posts: 21
Joined: Tue 7. May 2019, 11:37

Re: Panel link for clients

Post by webmedia »

Great! Thanks for the info, do you have any example just to see how it goes with cronjob.
Locked