Strange proxy_pass problem

Francis Daly francis at daoine.org
Fri Oct 18 16:50:23 UTC 2013


On Fri, Oct 18, 2013 at 05:34:22PM +0200, Rainer Duffner wrote:

Hi there,

> server {
>         listen       80 default_server;

> server {
>     listen our.ip;

If your nginx.conf has only those two server{} blocks with only those two
listen directives, then I would expect that every request that connects
to our.ip will be handled by the second block; and every request that
connects to any other IP address on the machine will be handled by the
first block.

> Now, the problem is that while I can in principle access phpmyadmin,
> (via http://our.ip/phpmyadmin/ - I can login, databases are displayed
> etc.) the images aren't found anymore, because the requests for the
> images end up at the non-default vhost rdudemotest2.

What happens if you remove the line "listen our.ip;", or replace it with
"listen 80;"?

If that doesn't fix everything, can you describe one http request which
does not do what you expect it to? And, in case it is not clear, describe
how what it does do is not what you expect.

Best would probably be if you can show the "curl -i" or "curl -v" output.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list