.\" Generated by kramdown-man 1.0.1 .\" https://github.com/postmodern/kramdown-man#readme .TH ronin-web-reverse-proxy 1 "2022-01-01" Ronin "User Manuals" .SH NAME .PP ronin\-web\-reverse\-proxy \- Starts a HTTP proxy server .SH SYNOPSIS .PP \fBronin\-web reverse\-proxy\fR \[lB]\fIoptions\fP\[rB] \[lB]\fB\-\-host\fR \fIHOST\fP\[rB] \[lB]\fB\-\-port\fR \fIPORT\fP\[rB] .SH DESCRIPTION .PP Starts a HTTP reverse proxy server\. .SH OPTIONS .TP \fB\-H\fR, \fB\-\-host\fR \fIHOST\fP The host that the proxy server will listen on\. Defaults to \fBlocalhost\fR\. .TP \fB\-p\fR, \fB\-\-port\fR \fIPORT\fP The port that the proxy server will listen on\. Default to \fB8080\fR\. .TP \fB\-b\fR, \fB\-\-show\-body\fR Controls whether to display the request\[sl]response bodies or not\. .TP \fB\-\-rewrite\-requests\fR \[lC]\fISTRING\fP:\fIREPLACE\fP\[or]\[sl]\fIREGEXP\fP\[sl]:\fIREPLACE\fP\[rC] Rewrites all request bodies by replacing the \fISTRING\fP or \fIREGEXP\fP with the given \fIREPLACE\fP string\. .TP \fB\-\-rewrite\-responses\fR \[lC]\fISTRING\fP:\fIREPLACE\fP\[or]\[sl]\fIREGEXP\fP\[sl]:\fIREPLACE\fP\[rC] Rewrites all response bodies by replacing the \fISTRING\fP or \fIREGEXP\fP with the given \fIREPLACE\fP string\. .TP \fB\-h\fR, \fB\-\-help\fR prints help information\. .SH EXAMPLES .PP Listen on the external interface on port 80: .PP .RS 4 .EX \[Do] sudo ronin\-web reverse\-proxy \-\-host 0\.0\.0\.0 \-\-port 80 .EE .RE .PP Replace every occurrence of \fBhttps\fR with \fBhttp\fR in the response bodies: .PP .RS 4 .EX \[Do] ronin\-web reverse\-proxy \-\-rewrite\-responses https:http .EE .RE .SH AUTHOR .PP Postmodern .MT postmodern\.mod3\[at]gmail\.com .ME .SH SEE ALSO .PP .BR ronin\-web\-server (1)