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.
This call can take longer than usual because the actual file is retrieved on-demand from your server.
Required parameters
- Name
content- Type
- string
- Description
The full configuration content for the webserver file.
Request
PATCH
/api/servers/{server}/sites/{site}/nginx-configurationcurl -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."
}