Analyzer ngx-config-servers

Name

ngx-config-servers - Dump The Name of The Http Servers

This analyzer enumerates and displays the names of all configured HTTP server blocks in Nginx, OpenResty, and Kong deployments. It extracts server_name directives from active configurations, providing visibility into virtual host setups. The analyzer assists in configuration auditing and troubleshooting routing issues in multi-tenant environments.

Resource Category

Miscellaneous.

Application Type & Technical Stack

  • OpenResty
  • Kong
  • APISIX

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run ngx-config-servers -p PID

# trace a shell command directly
orxray analyzer run ngx-config-servers -c SHELL_CMD

Tracing Multiple Processes

Not supported.

Output Formats

  • Plain Texts

Output Example

[
    {
        "type": "table",
        "data": [
            [ "Index", "Server Name" ],
            [ "0 ", "news" ],
            [ "1 ", "sports" ],
            [ "2 ", "finances" ],
            [ "3 ", "stocks" ]
        ],
        "title": "Server Names of HTTP\/s",
        "ver": 1
    }
]

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.