101 — NGINX reverse proxy
Proxy pass setting for buckets
This website is coded using pure static html code, and hosted on Linode Object Storage - AWS/S3 compatible.
This is how to configure NGINX to reverse proxy traffic from
website-us-east-1.linodeobjects.com
to
lekkyweb.com.
location / {
proxy_set_header Host website-us-east-1.linodeobjects.com;
proxy_pass https://website-us-east-1.linodeobjects.com/lekky2.0/;
}
Notes:
- lekkyweb.com IP 66.175.216.90 on Linode Fremont.
- DO NOT use https://us-east-1 -- it must be:
https://website-us-east-1
$ sudo vi /etc/nginx/sites-enabled/lekkyweb.com
$ sudo service nginx restart
references
→
docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
Passing a Request to a Proxied Server
- Passing Request Headers
- Configuring Buffers
- Choosing an Outgoing IP Address
→
kinsta.com/blog/reverse-proxy/
What Is a Reverse Proxy?
- Reverse Proxy Server vs Forward Proxy Server
- Load Balancing
- Global Server Load Balancing (GSLB)
- Enhanced Security
- Powerful Caching
- Superior Compression
- Better A/B Testing
- Monitoring and Logging Traffic
- Limitations of a Reverse Proxy
- Choosing Between a CDN and a Reverse Proxy