Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - isaack

Pages: [1]
1
CentOS-WebPanel Bugs / API Domain
« on: September 10, 2018, 07:20:45 PM »
Hallo,
ich bin leider jetzt erst dazu gekommen die Domain Funktion bei der Api zu testen.
leider muss ich feststellen, das der Server keine Antwort auf die Anfrage per Curl gibt.
Liegt das an meinem Code oder ist hier eventuell noch ein kleiner fehler im Script?

this is my code:

Code: [Select]
$data = array(
"key" => $key,
"action" => 'list',
"user" => 'isaack',
"type" => 'subdomain',
"name" => $domain,
"path" => 'public_html/vms-suee/'
);

$url = "https://91.194.84.77:2304/v1/admindomains";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
$response = json_decode($response);
return $response;

2
Other / Add domain with API
« on: August 02, 2018, 12:54:21 PM »
Hello, I do not really know if I'm right here. At least I did not find anything else where you can write API questions purely.
Is it possible to add a domain with target directory via API for an existing user, if so which function should I use?

Thanks for the answers.

3
SSL / Automatically on https
« on: May 20, 2018, 07:11:03 AM »
Hello,
how can i set it to be taken automatically https instead of http?
Currently I always have to write https with in the URL.
An SSL certificate has already been created for each domain.

thanks for the answers.

Pages: [1]