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

Wednesday, September 21, 2022

[FIXED] How to do reverse proxy on waitress server for Python Flask Application

 September 21, 2022     python, virtualhost, waitress     No comments   

Issue

I am a newbie in web deployment and I have a flask application which is being hosted at 0.0.0.0:5070. Now I want to do the reverse proxy and be able to direct a certain hostname (bound to server IP) to this port. I have tried the Waitress documentation but seems to be of no help. Any guidance in this will be highly appreciated. Thanks.


Solution

Basically, what @Debendra mentioned is correct. For production workload, it is recommended to use uwsgi as your application server.

From there, you'll need to use a web server to act as your reverse proxy. Please refer the following documents:

What is uWSGI?

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 18.04

Read the above to become familiar with the components and submit another question if you want a follow up.



Answered By - Carlos
Answer Checked By - Candace Johnson (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