Welcome! Log In Create A New Profile

Advanced

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.2 KB open | download Michael Salmon 05/09/2017 Read message
Francis Daly
May 09, 2017 04:28PM
On Tue, May 09, 2017 at 09:03:13AM -0400, itpp2012 wrote:
> Francis Daly Wrote:

Hi there,

> > It cannot work in stock nginx just using nginx.conf normal directives.
>
> You can with (many) proper rewrites but this does require a very close eye
> on the logfiles until you have rewritten all the 40x's, and for the sake of
> performance eventually have them converted to a sequence of maps.

From the original mail:

"""
If it was only one web application I could setup location
blocks for specific patterns, but if I plan on running multiple web
applications on a single FQDN (perhaps even different instances of the
same web app), each in a separate sub-URI, those web applications
might all make requests to '/static/styles.css' based on their
original configuration.
"""

nginx gets a request for /static/styles.css.

I'm not aware of a rewrite which will let you decide which of web-app-1
and web-app-2 is the correct one to proxy_pass this request to this
time. Both web apps use the same url.

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

deoren May 08, 2017 07:18PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app? Attachments

Michael Salmon May 09, 2017 04:36AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 05:33AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

Francis Daly May 09, 2017 08:38AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 09:03AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

Francis Daly May 09, 2017 04:28PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 04:58PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

deoren May 10, 2017 11:32PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

pbooth May 11, 2017 12:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready