Welcome! Log In Create A New Profile

Advanced

Can't catch location.

Posted by TomerFi 
Can't catch location.
June 05, 2019 08:05AM
Hello

I'm using nginx 1.10.3 running on raspbian.

I'm scratching my head and going through everything I can find online,
And I just can't seem to catch a specific location.

I want to create a location block for the specific uri:
https://myserver.com:1234/module1/pic.svg
And proxy_pass it to another server.

These work:
location / {..}
location ~ "\.(svg)$" {...}

These doesn't work:
location /module1/ {...}
location ^/module1/ {...}
location = /module1/pic.svg {...}

I need to catch the specific module (module1) and the specific filename (pic.svg).
I've tried a bunch of other combination following guides and examples I found online.
I just can't seem to get the correct formula for doing that.

Any ideas?

Thanks,
Tomer.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
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