Flask Mailinglist

« back to archive

Flask app at webroot and delegation to other (php, perhaps) apps off root

Flask app at webroot and delegation to other (php, perhaps) apps off root

From:
Sean Davis
Date:
2012-10-09 @ 19:05
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

Re: Flask app at webroot and delegation to other (php, perhaps) apps off root

From:
Simon Sapin
Date:
2012-10-10 @ 09:20
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 

Re: Flask app at webroot and delegation to other (php, perhaps) apps off root

From:
Sean Davis
Date:
2012-10-10 @ 11:03
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