• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

API Issue + Solution

D

davex2cms

Guest
Hi,

Issue
===================================

Ive been having problems with the protected URL feature, the feature works with sites created through plesk administration but i noticed since 7.5.6 that sites created with the API the protected URL feature wasnt working properly.

The issue is caused by a change to the database hosting table -> 'server_id' which is blank for domains created with the API's with version 7.5.6 and maybe earlier versions.

Solution
===================================

The hosting table -> 'server_id' field should have the IIS identifier for your domain e.g. if you your domain is mysite.com and has an IIS identifier of 12345 then you need to have 12345 in server_id field for the domain.

The protected URL feature will work properly now, if you have existing directorys protected, remove them and add them again after inserting the server_id.

DEVS
===================================
Please fix this issue with the API!

Regards,

Dave
 
Update : plesk support suggests -

To solve this issue you should perform the following command:
"%plesk_bin%\websrvmng.exe" --update-all-server-id.
 
Back
Top