Concepts
Proxy vs Reverse Proxy
Proxy:
benefits:
anonymity
caching
blocking unwanted sites
geoFencing
Reverse Proxy:
benefits:
loading balancing
caching
isolating internal traffic
logging
canary deployment
Dynamic Contents vs Static Contents
Dynamic: may change per-request, like PHP
Static: keep same per-request, good for caching
Apache vs Nginx
Apache:
- multi-processing model
- support dynamic contents
- support directory level config, based on file system
- support dynamically module loading
Nginx:
- async event driven model, support large concurent connections
- need external modules to support dynamic contents
- URI based configuration, not support directory level config
- not support dynamically module loading
Mixed:
Use Nginx for static content requesting and Apache for dymantic content rendering
近期评论