Nginx Rewrite rule for subdomains
Hello,
I have a web application that has had a name change. Im trying to figure out how to create a rewrite rule that forwards the users to the new domain for their account. Example. customer1.cloud.company.com -> customer1.company.cloud We have many customers with their own domains setup. Below is what i've tried as a rewrite rule that doesn't seem to work. Code:
server_name ~^(\w+)\.cloud.company\.com$; Thanks! |
Hi,
You may try this: Code:
server_name ~^(.+)cloud.company\.com$; |
All times are GMT -5. The time now is 05:40 PM. |