Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-06 Thread Francis Daly
On Sat, Oct 05, 2019 at 12:44:30PM -0400, Alex Med wrote: Hi there, Good that you have a configuration that works for you. If you want to spend more time on it, you may be able to remove some of the duplication; but that is not necessary. > I even included the proxy configuration parameters for

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-05 Thread Alex Med
Francis, I apologized. I wrote your name incorrectly in my previous message. I am not able to edit it. So, THANK YOU, FRANCIS! Alex Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285780,285800#msg-285800 ___ nginx mailing list nginx@n

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-05 Thread Alex Med
Dear David: I am very grateful for your help! Below is the final configuration working optimally. I even included the proxy configuration parameters for the websocket connection to work.I noticed that the location =/ does not support OR so I had create two additional locations to catch paths w

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-04 Thread Francis Daly
On Fri, Oct 04, 2019 at 03:36:13PM -0400, Alex Med wrote: Hi there, Thanks for the extra information. There are a few different things in here, but there is one that stands out as probably being a "quick fix" that should allow the rest to be tested separately... > Your Question # 1 > - > th

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-04 Thread Alex Med
Dear Francis: Thank you again for your help! I apologize. Perhaps, I should have started with what I want to accomplish with the configuration. I want the server to lowercased every URI except the ones that begins with any of the following paths: /api/ /contentAsset/ /categoriesServlet/ /DotA

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-03 Thread Francis Daly
On Thu, Oct 03, 2019 at 01:03:01PM -0400, Alex Med wrote: Hi there, > I also would like to add that when I access: example.com/API/ it is > lowercased to example.com/api/. According to my configuration it should > not. So it means location #1 is not working properly. Why do you think that? M

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-03 Thread Francis Daly
On Thu, Oct 03, 2019 at 12:21:29PM -0400, Alex Med wrote: Hi there, > Location #1 > location ~ > ^/(api|contentAsset|categoriesServlet|DotAjaxDirector|html|dwr|dA)/ {} > > Location #2 > This location does the lowercasing > location ~ [A-Z] { return 301 $scheme://$host$my_uri_to_lowercase;} >

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-03 Thread Alex Med
I also would like to add that when I access: example.com/API/ it is lowercased to example.com/api/. According to my configuration it should not. So it means location #1 is not working properly. Alex Med Wrote: --- > Dear Francis: > > Here a

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-03 Thread Alex Med
Dear Francis: Here are the answers to your questions. Thank YOU for helping! The location block are in the following order: Location #1 location ~ ^/(api|contentAsset|categoriesServlet|DotAjaxDirector|html|dwr|dA)/ {} Location #2 > This location does the lowercasing location ~ [A-Z] { retu

Re: Nginx Reverse Proxy Lowercase URL and some exceptions to the URL

2019-10-03 Thread Francis Daly
On Thu, Oct 03, 2019 at 11:36:27AM -0400, Alex Med wrote: Hi there, > 1- this location is not respected since the configuration lowercases all > uris without respecting these locations. Please note that api, > contentAssets, categoryServlet are paths, not directories or folders. Which part of t