Servers - atabegruslan/Notes GitHub Wiki
Nginx vs Apache
Apache - Process driven, can handle large number of requests/second. New process for each request. But slow if visit number increase.
Nginx - Event driven, won't slow if visit number increase.
Apache - More flexible: More addons, handle more scripting languages.
Nginx - Better performance.
- https://www.youtube.com/watch?v=UJEgx0vRna8
- https://pressable.com/blog/head-to-head-performance-comparison-of-nginx-and-apache
- https://cloudinfrastructureservices.co.uk/haproxy-vs-nginx-whats-the-difference
HAProxy vs Nginx
How different platforms parse query params
If you have a GET request like {domain}/path?param1=xxx¶m2=yyy¶m3=zzz
Server | how |
---|---|
Tomcat/JSP | first |
Apache/PHP | last |
IIS/ASP | all |
Server quirks
HTTP is case-sensitive and the local filesystem isn't.
Many servers cater for case imperfections.
http://stackoverflow.com/questions/6852277/case-sensitive-urls-how-to-make-them-insensitive