Welcome! Log In Create A New Profile

Advanced

Re: NginX problem with Reverse Proxy'ing

Maxim Dounin
April 10, 2010 02:08PM
Hello!

On Sat, Apr 10, 2010 at 05:36:19PM +0200, Victor wrote:

> Hi, I have a little problem that's driving me crazy since 4 days. I'm trying
> to create a server with NginX (0.8.35) serving static content (PDF files
> mainly) as frontend and Apache2 as backend processing the PHP files,
> actually I'm working only with basic PHP (phpinfo()) files for testing
> purposes (this isn't my production machine, only a
> pre-production-kind-machine. Apache is running in 127.0.0.1:8080
>
> When I'm trying to proxy the PHP to Apache is issuing a 301 Redirection (i
> tested it with cURL from another host, and giving a network error in IE8 and
> Chrome.
> Here I include the config files loaded in Nginx:

[...]

> Now the -i from cURL in blog.foo.com/index.php
> HTTP/1.1 301 Moved Permanently
> Server: nginx/0.8.35
> Date: Sat, 10 Apr 2010 15:34:45 GMT
> Content-Type: text/html; charset=UTF-8
> Connection: keep-alive
> X-Powered-By: PHP/5.2.10-2ubuntu6
> X-Pingback: http://127.0.0.1:81/xmlrpc.php
> Location: http://blog.foo.com:81/

So, your php code returns 301 redirect. Probably it's a good idea
to look into your php code?..

Maxim Dounin

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

NginX problem with Reverse Proxy'ing

Victor April 10, 2010 11:40AM

Re: NginX problem with Reverse Proxy'ing

Maxim Dounin April 10, 2010 02:08PM

Re: NginX problem with Reverse Proxy'ing

Victor Fondevilla April 10, 2010 03:20PM

Re: NginX problem with Reverse Proxy'ing

Victor Fondevilla April 10, 2010 03:22PM

Re: NginX problem with Reverse Proxy'ing

Maxim Dounin April 10, 2010 03:58PM

RE: NginX problem with Reverse Proxy'ing

Victor Fondevilla April 11, 2010 09:20AM

Re: NginX problem with Reverse Proxy'ing

Maxim Dounin April 11, 2010 10:50AM

RE: NginX problem with Reverse Proxy'ing

Victor Fondevilla April 13, 2010 03:34PM

Re: NginX problem with Reverse Proxy'ing

Victor Fondevilla April 11, 2010 02:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
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