ISPConfig api and sites_web_vhost_subdomain_add

Discussion in 'ISPConfig 3 Priority Support' started by tritema, Oct 26, 2020.

  1. tritema

    tritema Member HowtoForge Supporter

    Dear,

    on remote.d/sites.inc.php i see that method: sites_web_vhost_subdomain_add
    This seems the way to create, via API a subdomain (vhost) of a main domain.
    But when i try to call it, the subdomain (vhost) is created correctly on the interface, but on the filesystem,
    does not exist anything related on that one.

    Actually i'm going to "guess" what kind of parameters are needed by this api call, maybe this is the error (some parameter missing or wrongly specificed). Exist some documentations on this? I don't see them on the normal api docs.

    ty
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. tritema

    tritema Member HowtoForge Supporter

  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Ah yes. Some functions are not documented, but you can use them. I don't have a example for adding vhost subdomains, but you might take a look at the .tform.php for adding vhost subdomains to find the used variables and use the domain add example aswell.
     
    tritema likes this.
  5. tritema

    tritema Member HowtoForge Supporter

    Ok after some debug on the code i have managed to get it work. thank you.
     

Share This Page