Welcome! Log In Create A New Profile

Advanced

Newbie questions about nginx (moving from apache)

May 27, 2011 04:14AM
Hi

sorry for english.

i am on centos 64 bit server with cpanel and whm.

i have apache 2.2.18 and there is heavy duty use of the following:

1. mod rewrite
2. mod geoip
3. mod security (with rules available in 2.6.0 for google safe browsing checks etc)
4. mod evasive
5. php5 functionality with memcached + eaccelerator

for #1, i see from threads on this phorum that some rewriting functionality is possible. i also see that in 1.0.3 the #2 of geoip is possible.

but i am not sure about 3, 4 and 5. nginx does not support DDOS protection right? also, will all the php5 modules work with pecl such as memcached etc?

in trying to set up nginx, i have problem getting php to work. mod fcgi -- is there simple instruction about how to do, and how is the performance when compared to apache+eaccelerator which opcode caches?

because of this functionality, i don't want to move entire to nginx.

so i am trying this: nginx run on localhost on port 81. apache is main front server on port 80. all static content from images folder need to pass to nginx. i am trying this code in apache:


ProxyRequests Off
ProxyPreserveHost On
ProxyPass /mysite/images http://0.0.0.0:81/
ProxyPassReverse / http://0.0.0.0:81/


But this is not working.

Nginx root folder is "/mysite/images". And when I type in browser http://MYDOMAIN.COM:81 then I can see the nginx working fine. the images are there.

any idea about how i can make this setup work?

or ideally, over time i want to move entirely to nginx. so would appreciate some experienced thought or guidance.

thanks
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: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready