Ad Widget

Collapse

API giving File not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KJEchoZabbix
    Junior Member
    • Oct 2025
    • 7

    #1

    API giving File not found

    When I attempt to access the API I get File not found.

    Code:
    curl -k --request POST          --url 'https://<HOSTIP>/zabbix/api_jsonrpc.php'          --header 'Content-Type: application/json-rpc'          --data '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}'
    File not found.
    My setup is running in my non-prod environment running 7.4 with nginx and mysqld.

    The host has a locally generated self-signed cert thus the -k in the curl command.

    I'm really lost in the weeds with this error. Thanks for any input and help.​
  • KJEchoZabbix
    Junior Member
    • Oct 2025
    • 7

    #2
    Solved in Prod. I've got my PROD HA cluster running on a VIP. I'm running Apache in PROD with a slight change to my httpd.conf file that includes an alias command, which changes my landing page to the login page (instead of the default httpd splash page). It shortens my URL from https://<VIP_IP>/zabbix to https://<VIP_IP>/

    If others want to see my changes to httpd conf file I'm glad to share.

    This is a Closed/Solved issue.

    Thanks.

    Comment

    Working...