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.
Pages: [1]
1
CWP API / CWP API v1/admindomains added domain but domain unable to access
« on: March 26, 2023, 10:26:46 PM »
I used following code create new domain from CWP API.
> Domain Created and listed
> SSL generated, but when i access domain with https / http NOT FOUND
> When i create new domain manual its working,
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://xxxx:2304/v1/admindomains',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('key' => 'xxxx','action' => 'add','user' => 'prod','type' => 'domain','name' => 'school1.xxxx.com','path' => '/public_html','autossl' => '1'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
> Domain Created and listed
> SSL generated, but when i access domain with https / http NOT FOUND
> When i create new domain manual its working,
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://xxxx:2304/v1/admindomains',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('key' => 'xxxx','action' => 'add','user' => 'prod','type' => 'domain','name' => 'school1.xxxx.com','path' => '/public_html','autossl' => '1'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
2
Apache / URL Masking
« on: March 24, 2023, 01:13:16 AM »
Thanks for looking for
I am trying to use input masking few of my subdomains. I configured like below in new subdomain prod.mspeducare.com. it seems not working. kindly suggest
RewriteEngine On
RewriteCond %{HTTP_HOST} ^prod.mspeducare.com$
RewriteRule ^(.*)$ https://dev.mspeducare.com/$1 [P]
I am trying to use input masking few of my subdomains. I configured like below in new subdomain prod.mspeducare.com. it seems not working. kindly suggest
RewriteEngine On
RewriteCond %{HTTP_HOST} ^prod.mspeducare.com$
RewriteRule ^(.*)$ https://dev.mspeducare.com/$1 [P]
Pages: [1]