Welcome! Log In Create A New Profile


nginx location directive regex case insensitive

Posted by rocklee44 
nginx location directive regex case insensitive
November 28, 2022 02:39AM
Hi all,
This is my nginx config:
upstream identityserver {

location /identityserver/ {
proxy_pass http://identityserver/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
I want requests to mywebsite.com/identityserver or mywebsite.com/IdentityServer or any variation of "identityserver" will be processed to upstream identityserver. How can I do that ?
Please give me some advice, thank you very much.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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