Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to use nginx for accelerating Apache

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-06-2010
Member
 
Join Date: Mar 2010
Posts: 393
How to use nginx for accelerating Apache
  

I work with Nginx & Apache and it's enormously fantastic . The nginx is enormous - but my query is - nginx serves up static content, but how does that phase by means of Apache re-write rules. Do they tranquil work. I utilize merely nginx+php-fpm on my server, but for my reseller server, I cannot actually do that (cpanel). But I would not locate doing the hybrid. But do htaccess files, particularly mod-rewrite rules work.

Reply With Quote
  #2  
Old 16-06-2010
Member
 
Join Date: May 2009
Posts: 1,080
Re: How to use nginx for accelerating Apache

In that case, you be supposed to utilize nginx similar to I do, as a reverse substitute. The Nginx serves static content and the rest it passes to apache in the background. It's perfect, speedy, a expensive gem Yep, that's what I believe I determine to do. But it tranquil functions for rewrites. What regarding image paths which are re-written (ie, if nginx does not locate it, does it immediately throw it to apache to finish up, or discards the request).
Reply With Quote
  #3  
Old 16-06-2010
Member
 
Join Date: Jul 2009
Posts: 1,113
Re: How to use nginx for accelerating Apache

I was wondering, if they did include nginx hold up or maintain, would you desire to utilize nginx as a drop-in replacement for Apache or in conjunction with Apache. I am familiar with a number of folks similar to utilize Apache for stuff similar to CGI/PHP and utilize a quicker server (e.g. nginx) to serve static content, but there was a mention of PHP-FPM which seems to basically using nginx in place of Apache.
Reply With Quote
  #4  
Old 16-06-2010
Member
 
Join Date: Jul 2009
Posts: 1,174
Re: How to use nginx for accelerating Apache

Would incredible for selecting your favored web server comparable to the Name server selection screen where you are able to choose BIND vs. NSD be satisfactory. Or is a dual nginx/Apache setup something you necessitate. Perhaps 3 alternatives: Defaulting Apache, Duo Server using Apache/mod_php, by means of nginx for serving static content, Nginx Solo by means of dynamic content hold up or maintain via php-fpm (which is supposed to be added).
Reply With Quote
  #5  
Old 16-06-2010
Member
 
Join Date: Nov 2009
Posts: 947
Re: How to use nginx for accelerating Apache

Accurately that, nginx authorize that alternative, if it does not locate the image, he pass the application to the backend to apache, and I am optimistically going to that tonight. Immediately getting my server setup by means of the basics right at present. So, it's not facilitated by defaulting, what alternative is it. An additional + for nginx in front of apache. We are presently using it on some extremely busy servers, its dropped load particularly. Static content makes up for 50% of our requests, so we encompass nginx serving the static content. They saw apache processes drop to 30%, and load standard drop to 20% of what it was initially when launching nginx.
Reply With Quote
  #6  
Old 17-06-2010
Member
 
Join Date: May 2009
Posts: 969
Re: How to use nginx for accelerating Apache

You have to immediately installed nginx to present a number of assist to apache. Everything runs extremely well. At present I am writing cPanel addon to permit solitary users to physically edit the directory of extensions served by nginx. I previously encompass Nginx installed and serving on port 80. But if I generate an innovative domain. The domain entry requirements to be twisted in nginx vhost files This be supposed to in addition occur for subdomains and addon domains.
Reply With Quote
  #7  
Old 18-06-2010
Member
 
Join Date: May 2009
Posts: 999
Re: How to use nginx for accelerating Apache

Is there a method to do so. Be able to anybody give pleasure to direct me as to how I be able to facilitate mechanical entry of the innovative domains, in the nginx conf files, so that the static files are served by Nginx. You be supposed to utilize cpanel HOOKS, there is additional thread here (I do not keep in mind where), that talks regarding that and gives the entire the details regarding HOOKS. You be able to in addition observe HOOKS on the cpanel wiki.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to use nginx for accelerating Apache"
Thread Thread Starter Forum Replies Last Post
Installing php-apache on Iomega StorCenter ix2-200 NAS gives error: apache.postinst returned 1 Shoya Networking & Security 4 05-05-2012 06:59 PM
Accelerating video files with VirtualDub Maq.H Tips & Tweaks 3 15-09-2010 06:57 AM
Accelerating uTorrent download speed Maq.H Tips & Tweaks 4 01-04-2010 07:43 AM
Accelerating the speed of scrolling in Firefox 3.6 Akiraa Technology & Internet 5 22-02-2010 12:55 PM
Which is better Nginx or Lighttpd Cabexas Networking & Security 3 30-09-2009 12:00 AM


All times are GMT +5.5. The time now is 02:03 AM.