I have a domain that now hosts a flask app at the root. I am proxying behind nginx (for the time being). I have a couple of URLs below root that need delegation to php (written and maintained separately). I think the best way to deal with this problem is at the nginx level (not sure how, exactly, but that is a detail that I will need to sort out). Is there someone who has had a similar situation who can share his/her experience with doing something like this? Thanks, Sean
Le 09/10/2012 21:05, Sean Davis a écrit : > I have a domain that now hosts a flask app at the root. I am proxying > behind nginx (for the time being). I have a couple of URLs below root > that need delegation to php (written and maintained separately). I > think the best way to deal with this problem is at the nginx level > (not sure how, exactly, but that is a detail that I will need to sort > out). Is there someone who has had a similar situation who can share > his/her experience with doing something like this? You need to configure nginx to dispatch requests to different backends based on their path. This is really a nginx question, nothing to do with Flask. -- Simon Sapin
On Wed, Oct 10, 2012 at 5:20 AM, Simon Sapin <simon.sapin@exyr.org> wrote: > Le 09/10/2012 21:05, Sean Davis a écrit : > > I have a domain that now hosts a flask app at the root. I am proxying > > behind nginx (for the time being). I have a couple of URLs below root > > that need delegation to php (written and maintained separately). I > > think the best way to deal with this problem is at the nginx level > > (not sure how, exactly, but that is a detail that I will need to sort > > out). Is there someone who has had a similar situation who can share > > his/her experience with doing something like this? > > You need to configure nginx to dispatch requests to different backends > based on their path. This is really a nginx question, nothing to do with > Flask. > > A clear answer is what I sought and got. Thanks. Sean