LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-12-2011, 01:38 PM   #1
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
NGINX with PHP-FPM vis NGINX with Spawn-FCGI


Hello fellows,
How you doing all?

Recently, I've started to use NGINX in place of (or with) Apache.

First, I started on making few tests on NGINX performance..
My setup was a CentOS VPS + NGINX + Spawn-FCGI.
The benchmarks were amazing compared to Apache.

Now, I've done the migration to NGINX, on one of my Web servers Boxes.

That box setup is: Slackware 13.1 + NGINX + PHP 5.3.5 + PHP-FPM

I wonder now, which is better, for performance in the first place..
Is it the PHP-FPM, or the Spawn-fcgi ??


Also, I need a little help with some NGINX configs..
On my old setup when I was using Apache..

I had configured it to redirect ANY request to ANY file in one particular directory to another location, this is what I had in that directory .htaccess:

Assuming this direcoty located on:
uploads/
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://xxxxxx.xxx/box1/$1 [R=301,L]
This redirect aims to reduce bandwidth consumption on that box, and redirect the traffic on that directory to a mirror of it on another server.

I couldn't really find or get any setting for NGINX that handle this redirect correctly..

Any Help will be more than appreciated..

- Hasan
 
Old 03-15-2011, 06:39 PM   #2
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Any comments fellows..!!

Regards..
 
  


Reply

Tags
config, nginx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 14 LXer Syndicated Linux News 0 12-14-2010 09:00 AM
LXer: Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 10.10 LXer Syndicated Linux News 0 11-09-2010 10:50 AM
LXer: Installing Nginx With PHP 5.3 And PHP-FPM On Ubuntu Lucid Lynx (10.04) LXer Syndicated Linux News 0 06-14-2010 11:42 PM
LXer: Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian LXer Syndicated Linux News 0 02-10-2010 05:40 PM
Nginx + php-fpm Slow Response When Busy godius Linux - Software 0 07-02-2009 02:25 PM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration