3

I have the following Nginx Block of code. Actually I have block of code around 50 time for different sites.

I wanted to see if I could combine it into one block of code. You will see test.dating in the code 5 times. Is there a way to replace the domain name 'test.dating' with a variable?

www.thai.dating

Just want to reduce the number of server blocks.

Cheers Adam

Adam
  • 19,932
  • 36
  • 124
  • 207

0 Answers0