Testing NGINX configuration
11:33 15 Feb 2022

I have a reverse proxy server with NGINX and I want to test its configuration automatically.

What I want to achieve in the end is to have a command that I can run, it starts the NGINX with the configuration, run several http requests, and then track and gather whether the right proxied server was called.

I've been thinking on setting up an environment with docker-compose and use curl/wget with the list of urls I want to test. The thing that I don't know is how to mock certain domains and track the forwarded requests.

Is there a tool to do that or should I write a server manually?

nginx automated-tests nginx-reverse-proxy