>On Mon, Oct 15, 2012 at 6:59 AM, jormak <[email protected]> wrote:
> I am aware this is a naive question but I'd be very grateful for some
> insight as I don't understand: Most TG deplyment scenarios mention using TG
> with Apache. Why is this necessary? Why can't TG be used as a standalone web
> server serving web pages and responding to  web requests at a given port?

For many reasons, first being that the build in server (Paste) is not
made to work in production environments directly, performance would be
abysmal compared to using apache or a production wsgi server; security
is also a concern as Paste is not meant to be used in production
environments directly.

Now, you could run for example gunicorn or uwsgi directly, both can
serve http directly to any port, but then again serving static files
using a python wsgi server is not very performant compared to apache
or nginx, this is why it is preferred to use apache or nginx (as
reverse proxy).

SSL is another concern, you cannot serve SSL directly with build in
Paste server, but under Apache or nginx you can have an SSL
certificate and serve HTTPS connections.

Regards,
Carlos Daniel Ruvalcaba Valenzuela

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to