nginx does not work

Francis Daly francis at daoine.org
Sun Oct 11 10:01:52 UTC 2015


On Sun, Oct 11, 2015 at 04:23:56AM -0400, DocMAX wrote:

Hi there,

> my reverse proxy is not working with webmin. css is not resolved.

What is the url of one css file that you wish to have resolved but which
is not resolved?

My suspicion is that it does not start with "/webmin", and so it will
not be handled in your proxy_pass location.

> 		location ^~ /webmin {
> 			proxy_pass http://192.168.1.5:10000/;
>         }

You may be happier configuring webmin like it says on
http://www.webmin.com/apache.html, section "Webmin In A Sub-Directory
Via A Proxy"; and then changing your nginx config to be more like

  location ^~ /webmin/ {
    proxy_pass http://192.168.1.5:10000;
  }

It is always fiddly to reverse-proxy something at a different place in the
url tree than it expects to be; so if the something has a config feature
to make it unnecessary to do so, it is usually good to make use of that.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list