PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, June 24, 2022

[FIXED] What are the disadvantages of using AWS ELB directly with Gunicorn (no nginx)?

 June 24, 2022     amazon-elb, amazon-web-services, django, gunicorn, reverse-proxy     No comments   

Issue

Typical setups I've found on Google to run a django application on AWS all suggest a setup like

ELB -> nginx -> gunicorn -> django

I was wondering why the nginx part is really needed here? Isn't ELB sufficient as proxy?

In our case, we are running multiple Gunicorn/django instances in individual docker containers on ECS.


Solution

Without Nginx, It would work just fine and you will still be safe from the majority of DDOS attacks that can bring down an exposed gunicorn server.

I can only see Nginx helpful to add to the stack if it'll be serving your static files. However, it's much better to serve your static files by S3 (+ cloudfront as a bonus) since it's has high availability and reliability baked in.

Sources: http://docs.gunicorn.org/en/latest/deploy.html#nginx-configuration https://stackoverflow.com/a/12801140



Answered By - mostafazh
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing