Welcome! Log In Create A New Profile

Advanced

Re: Strange proxy_pass problem

Francis Daly
October 18, 2013 12:52PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Strange proxy_pass problem

Rainer Duffner October 18, 2013 11:36AM

Re: Strange proxy_pass problem

Francis Daly October 18, 2013 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready