Re: AW: AW: Using NGINX as reverse proxy to webmin on a remote server

2020-04-27 Thread P.V.Anthony
min/webmin/issues/420 Here is some documentation for using ssh like a vpn. https://www.howtogeek.com/168145/how-to-use-ssh-tunneling/ read this section, "Dynamic Port Forwarding: Use Your SSH Server as a Proxy" from the above link. P.V.Anthony _

Re: AW: AW: Using NGINX as reverse proxy to webmin on a remote server

2020-04-27 Thread P.V.Anthony
facing the internet. To scary for me. I would just use ssh -D 8080 user@server then with firefox set to proxy on 8080 and use webmin. I feel that is much more safer. It is like a vpn connection. P.V.Anthony ___ nginx mailing list nginx@ngin

Re: AW: Using NGINX as reverse proxy to webmin on a remote server

2020-04-27 Thread P.V.Anthony
e). I cannot see any graphical elements, like colors, gifs Checkout the following link. https://serverfault.com/questions/443482/proxying-webmin-with-nginx P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/lis

Re: Nginx wp-admin access control

2020-04-22 Thread P.V.Anthony
do not mind. P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx wp-admin access control

2020-04-15 Thread P.V.Anthony
ng?place=2" ) { rewrite ^ https://www.example.com${uri}?${args}? last; } Please check with others also. P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to do location /test/place?id=2

2019-10-19 Thread P.V.Anthony
t does not work when the uri has id=1 where id=1 should remain and go to old.example.com. The solution that works for me is as follows. if ( $request_uri = "/test/place?id=2" ) { rewrite ^ http://new.example.com${uri}?${args}? last; } Works with "r

Re: How to do location /test/place?id=2

2019-10-18 Thread P.V.Anthony
On 18/10/19 9:47 pm, J. Lewis Muir wrote: And in your example, you were doing a return inside an "if" which is noted as being safe in a location context. Phew! Thank you for the advice. P.V.Anthony ___ nginx mailing list nginx@ngin

Re: How to do location /test/place?id=2

2019-10-18 Thread P.V.Anthony
it gets an `id' set to 2? Will check it out. Thank you for the advice. P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
e this. You really helped. Thank you again. P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
some setting or quotes? > if ( $uri?$args = /test/place?id=2 ) { > rewrite ^ http://new.example.com${uri}?${args}? last; > } Tried the following and it works but is it safe? if ( $request_uri = "/test/place?id=2" ) { rewrite ^ http://new.example.com${uri}?${arg

Re: How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
d outside the server block. Is there some way of setting a variable in the server block so that I can use the config you have shared below? if ( $is_new_site ) { rewrite ^ http://new.example.com/${uri}?${args}? last; } P.V.Anthony ___ nginx mailing

Re: How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
hout using "if"? P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
nd id=3 gives a 404 error. location = /test/place { if ($args = "id=2") { return 301 https://new.example.com/test/place?$args; } } How to make id=1 and id=3 to work? P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

How to do location /test/place?id=2

2019-10-17 Thread P.V.Anthony
nately the above does not work. What is missing? -- P.V.Anthony ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx