cargo build
NOTE: it may be necessary to explicitly set versions of dependent software. For example, to build with a newer, more recent zlib version you can run ZLIB_VERSION=1.3.1 cargo build
. See the ngx-rust
README.md for details.
A basic configuration file is provided in the conf
directory. Once you've built the project you'll have a usable object in the target/debug
directory, move this to your desired location and update the conf/howto.con
file with the proper path and name.
You can now start an NGINX instance and try the module. For example, if you use an argument of "GET", the module will allow all GET
requests and deny others.
curl localhost:8080
proxy passed to backend
curl -X POST localhost:8080
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.23.3</center>
</body>
</html>
Please see the contributing guide for guidelines on how to best contribute to this project.
© F5, Inc. 2023