unit testing - Is it possible to run (and check) Nginx rewrite rules without running the whole web server? -
i want close can "unit testing" nginx rewrite rules. how close can 1 doing this? there way run request rewriting module without running entire web server? can embed nginx server in process running ruby or python or, if have to, java? tricks can think of?
put rewrite rules in include file.
create nginx configuration testing pulls in rewrite include file.
using
-c
, possibly-g
flags, runnginx
user. since can run on alternate port, won't conflict web server running on port 80.have automated testing run tests against "test server".
shut down nginx test server.
Comments
Post a Comment