Update NGINX configuration

Update the webserver configuration for a site.


PATCH/api/servers/{server}/sites/{site}/nginx-configuration

Update NGINX configuration

This endpoint updates the NGINX configuration for a specific site.

Required parameters

  • Name
    content
    Type
    string
    Description

    The full configuration content for the webserver file.

Request

PATCH
/api/servers/{server}/sites/{site}/nginx-configuration
curl -X PATCH "https://ploi.io/api/servers/{server}/sites/{site}/nginx-configuration" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"content": "...Complete webserver contents..."}'

Response

{
  "status": "ok",
  "message": "Don't forget to reload or restart NGINX after this call."
}