• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue Sub domain additional nginx directives

minty-arthur

New Pleskian
Server operating system version
Ubuntu 22.04.4 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.65 Update #2 Web Pro Edition
Hi Support,

I have a sub domain that has a nginx directive set.
This allows me to use an api that is added into ssh
All routes work (including POST, PUT, OPTIONS, GET methods)
However when I try to call my route POST /api/v1/users or any request that has /api/v1/users innit, it sends me a default answer of nginx itself without plesk overriding this response it seems. The response I received:
1734433030119.png














From other POST calls:
1734433113835.png
 

Attachments

  • 1734432744550.png
    1734432744550.png
    46.5 KB · Views: 7
Hello! It's hard to say what's going wrong without web server logs. Please check /var/log/nginx/error.log when you call POST /api/v1/users to see if there are any errors appear. You could post errors from log here however I would recommend contact Plesk technical support team to speed up investigation.
 
Back
Top