May 27, 2011 04:36AM
On Fri, May 27, 2011 at 04:28:10AM -0400, pk899 wrote:
> thanks igor. wow, so fast reply.
>
> how can i setup nginx "before apache"? will i have to change apache
> port?
>
> and what will the syntax look like. is there any simple guide? i have a
> high traffic site so dont want to break the functionality.

You should test nginx setup on 81 port passing request to Apache on 80:

server {
listen 81;
server_name your.domain.com;

root /path/to/static;

location / {
proxy_pass http://127.0.0.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /mysite/images/ {
}

}

You may need to add mod_rpaf to Apache to process client IPs passed
by nginx in X-Forwarded-For.


--
Igor Sysoev

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

Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 04:14AM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 04:26AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 04:28AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 12:19PM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 04:36AM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 12:44PM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 12:59PM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 11:54PM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:24AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 09:31AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:58AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:28AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:32AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 09:55AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 10:06AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:18AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:20AM

Re: Newbie questions about nginx (moving from apache)

Maxim Dounin May 28, 2011 10:34AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 29, 2011 01:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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