Good evening,
i have problem with API and SSL on my instance. With SSL on i can not get values by API.
Here is directadmin.conf contents (most important variables for this problem):
And here is error that i get while i am using API:
After changing:
everything works fine but SSL on website is off.
Another problem is that after i have added:
to directadmin.conf address of the website ends with port ":2222". Am I able to remove it? Just to force use https (443) port?
i have problem with API and SSL on my instance. With SSL on i can not get values by API.
Here is directadmin.conf contents (most important variables for this problem):
Code:
SSL=1
check_referer=1
port=2222
ssl_redirect_host=da.mydomain.com:443
force_hostname=da.mydomain.com
And here is error that i get while i am using API:
Code:
HTTPSocket Object
(
[version] => 2.7.2
[method] => GET
[remote_host] => ssl://da.mydomain.com
[remote_port] => 2222
[remote_uname] => admin
[remote_passwd] => MY_PASSWORD
[result] =>
[result_header] =>
[result_body] =>
[result_status_code] =>
[lastTransferSpeed] =>
[bind_host] =>
[error] => Array
(
[0] => Can't create socket connection to ssl://da.mydomain.com:2222.
)
[warn] => Array
(
)
[query_cache] => Array
(
)
[doFollowLocationHeader] => 1
[redirectURL] =>
[max_redirects] => 5
[ssl_setting_message] => DirectAdmin appears to be using SSL. Change your script to connect to ssl://
[extra_headers] => Array
(
)
)
After changing:
Code:
SSL=0
ssl_redirect_host=da.mydomain.com
Another problem is that after i have added:
Code:
force_hostname=da.mydomain.com
Last edited: