Domain placeholder ...
 
Notifications
Clear all

Domain placeholder question

3 Posts
2 Users
0 Reactions
1,326 Views
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

Hi,

please can someone maybe help or point me in the right direction.

Some of the services have admin urls for example mysql. Customers would use this info for their web apps, etc. Is there a way to use a dns name, ie on helm we set the address to "mysql.thecustomersdomain" this allows the customer to use this for their database connection, as well as using this url in a browser to access the phpmyadmin software.  Is there a way to get this to auto populate depending on the domain, ie mysql.[DOMAIN_NAME] for example.  I tried this but it doesnt work it appends the url to the control panel url, ie cp.cpdomainname/mysql.[DOMAIN_NAME] which is not what we want as well if you add the url as http://mysql.abcdomain.co.za the link just takes you to a blank page. So 2 things seem to be happening here

  1. the domain placeholder doesnt resolve the domain in question
  2. The url looks like the link is appended to the cp url (meaning you have to install the sw on the cp server or if you use the http:// in this url it runs an error in displaying the page that it should display it shows http://cpanel.company.xxx/Default.aspx?pid=SpaceMySql5&mid=157&ctl=edit_item&ItemID=127&SpaceID=31&Mode=View where it should be going to http://mysql.customersdomain.co.za

 

Thanks in advance

2 Replies
Posts: 80
(@bogdan_k)
Member
Joined: 8 years ago

Hi TechGuy,

the link "browse database" in the portal can't contain a variable like [DOMAIN_NAME], because to which domain should it point? If you look from the reseller perspective, it should point to one dedicated reseller domain, but if you look from a user perspective it should point to one user domain. OK, this sounds not so difficult, but which domain should SolidCP take, if a reseller or a user has more than one domain?

There is a possibility: you can create a custom CNAME DNS record in Configuration -> Servers -> MySQL or MariaDB. There you can use the [DOMAIN_NAME] variable. This will create for each new added domain, where the space has this server included, a CNAME record, like mysql.[DOMAIN_NAME], which you can point to your phpMyAdmin server URL. But with CNAME you can't use SSL, because the phpMyAdmin server can't host automatically the certificates for all the domains/subdomains. For the browse database link it's currently not possible to use different links.

Best regards

Bogdan

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

Hi,

yeah that is what I do, but I would like to display the info in the actual mysql and mssql pages, when the client logs in and goes to the db info, or creates the db there they should be able to see the info, ie mysql server name : mysql.theirdomain.com.

The issue with the resellers is they dont want us to show our domains etc, they want a whitelabled type enviroment.  Think I need to register a generic domain for the cp and the services..

Reply
Share: