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 - taqnawi

Pages: [1]
1
CWP API / I need help for api , delete domain
« on: February 05, 2024, 10:56:49 AM »
 This code not working for me, plz give code thanks
       
       $domain = "sub.example.com";
         $data = array("key" => "thoken",'action' => 'delete','user' => 'admin','type' => 'subdomain','name' => $domain,'path' => '/'.$domain);
                  $url = "https://ip: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);


2
CWP API / How To delete domain Annd subdomain use api
« on: February 03, 2024, 10:07:32 PM »
i'm try this code but not working
       
       $domain = "sub.example.com";
         $data = array("key" => "OOFju3Zb9s",'action' => 'delete','user' => 'amjed','type' => 'subdomain','name' => $domain,'path' => '/'.$domain);
                  $url = "https://000.000.00.000: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);

3
CWP API / Need help Error Api when create SubDomain and active ssl
« on: December 21, 2023, 12:43:46 PM »
Hi support

I have a problem with the site. When I create a subdomain and activate the autossl =1 feature, it creates the domain with the https security certificate, but the site does not work, I see this msg "Found message appears.
The requested URL was not found on this server" . And When I change the setting to autossl to 0, the site works normally, but the security ssl certificate does not work.

Please provide a correct code to automatically activate the security ssl certificate and make the site work without problems. Thank you for your understanding.

Send a message with a picture explaining this problem.

Pages: [1]