Forum Discussion
Using Proxy pass and to facilitate logon to Webmin administration page.
Anyone used the Proxypass irule or any other to facilitate logging on to Webmin administration page when its sitting behind a f5, iam using 11.41, the login page appears without problems but when you the login you receive a blank error page. In this case iam not using https, so its http.
Any help or tips appreciated.
/Craig
1 Reply
- Kevin_Stewart
Employee
In order to get Webmin to work behind a proxy, listening on port 80 HTTP, I had to use something like this:
when HTTP_REQUEST { Replace relevant headers to server HTTP::header replace Host "10.70.0.99:10000" HTTP::header replace Referer "https://10.70.0.99:10000/" } when HTTP_RESPONSE { replace redirect headers if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"https://10.70.0.99:10000" "http://10.80.0.197"} [HTTP::header Location]] } replace cookies foreach x [HTTP::cookie names] { set thisval [HTTP::cookie value $x] set thispath [HTTP::cookie path $x] HTTP::cookie remove $x HTTP::cookie insert name $x value $thisval path $thispath } }where in my lab, 10.70.0.99:10000 is webmin, and 10.80.0.197 is the HTTP virtual server.
In order to do the same but listening on port 443 HTTPS:
when HTTP_REQUEST { Replace relevant headers to server HTTP::header replace Host "10.70.0.99:10000" HTTP::header replace Referer "https://10.70.0.99:10000/" } when HTTP_RESPONSE { replace redirect headers if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"https://10.70.0.99:10000" "https://simpleserver.domain.com"} [HTTP::header Location]] } }where again 10.70.0.99:10000 is webmin and https://simpleserver.domain.com is the HTTPS virtual server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com