Apache vs. nginx

Damien Fleuriot ml at my.gd
Wed Jul 18 12:24:52 UTC 2012

On 7/17/12 4:40 PM, Paul Schmehl wrote:
> I'm the admin for a small hobby website (Stovebolt.com - about 7 million
> hits/mo).  We're fixin to buy a new server, and since I have to start
> from scratch (install FreeBSD and all the needed ports), I'm wondering
> if anyone on this list has switched from Apache to nginx.
> If you have, what has your experience been like?  Was the change
> relatively easy?  (I'm not intimidated by technical details.  I've been
> running FreeBSD on these servers for about 12 years now.)  Was the
> performance better?  (We've not been having any problems with Apache to
> this point.) Is there sufficient support from addon apps to run a site
> with a php-driven forum?

I have.

1/ regarding the difficulty of the switch

It depends on whether or not you're running code parsing programs like
CGI and PHP.

It also depends on whether or not you're using apache rewrite rules.

2/ regarding performance

I'm much more satisfied by nginx than I was by apache.
I find it runs smoother, it's not vulnerable to slowloris...

3/ regarding functionality

In constrast with Wojciech Puchar's email, I'd like to point out that
while nginx doesn't support .htaccess files, you can still customize
your vhosts to add authentication and such.

More information about the freebsd-questions mailing list