[TYPO3-linux] typo3 under nginx

Jan Slusarczyk janslu at grupaiis.pl
Thu Apr 2 23:55:15 CEST 2009


On 3/27/09 10:28 PM, Gilles Kirouac wrote:
>    Typo3 normally requires Apache as a web server.
> Can I use nginx (nginx.net)? Where can I find advice?
> Is there a How-To on the subject?

Nginx will not "run" typo3 on it's own. You have to have PHP running. 
But you can use nginx in two ways:

1. as a proxy to Apache with mod_php. This is fairly easy, nginx serves 
all static files, php requests are proxied to Apache. nginx is working 
on a public IP, apache on a virtual private one. Only thing need for 
apache is mod_rpaf to translate IPs.

2. as a single frontend to fastcgi php processes pool. This is an 
apache-free config.

Both ways will free resources if you have a traffic on your site. I 
don't think there's a universal answer to the question which way is 
better. I have settled on proxy-to-apache version (solution 1) because 
fastcgi seemed to be a bit less reliable and harder to monitor. 
Performance wasn't much different between these two on my server (up to 
120 requests per second, a lot of traffic generated by vbulletin board).

You can find configuration examples on nginx wiki:

http://wiki.nginx.org/NginxConfiguration

I'm pretty sure other people will know better than me. I can only tell 
you that in my more than a year experience nginx is really rock solid, 
small and very agile. It has saved me a lot of resources (ram mainly) 
and so far it didn't fail me.

Cheers
Jan


More information about the TYPO3-linux mailing list