2

I am using Tornado for a small blog which may get around 500-1k visits / day , is it ok to use tornado without any proxy in front of it ?

1 Answer 1

3

Yes, and no

If you start Tornado on port 80, you can use it stand-alone but you shouldn't. Tornado is really bad at static files, it wasn't built to serve static files, and shouldn't be serving static files, it was put there just to make things a bit easyer during development. You'd be much better off putting an NGINX instance in front of your single node, as described in their documentation.

NGINX also gives you lots of other features like static caching, easy header manipulation and better logging/error handling

2
  • Thanks for answering, I am using external server for serving static files (css, js ,etc ) . I have tried running on port 80 and it does work , but is there any security risk in running it on port 80 ? Aug 18, 2011 at 11:42
  • 1
    Yes, to run it on port 80 you would have to run it as root which has lots of security risks, if you do want it on port 80 you should run it on a higher port (say 8000) then map port 80 to 8000 with IPTables
    – user80776
    Aug 18, 2011 at 11:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .