Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python http server for production

Python docs claim, that "http.server is not recommended for production. It only implements basic security checks."

Is there another simple to use python server (like http.server) with "advanced" security check, ready for production?

(I want to run http server on Raspberri Pi, which will serve static website)

Thanks!

like image 401
Petr Marek Avatar asked Mar 01 '26 22:03

Petr Marek


1 Answers

I recommend something like Gunicorn or another WSGI Server.

https://gunicorn.org/

Furthermore there are some good hints for deployment of Python applications in the Flask documentation, which are not only applicable for Flask.

https://flask.palletsprojects.com/en/1.1.x/deploying/

like image 76
Nina Avatar answered Mar 03 '26 11:03

Nina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!