mercredi 26 février 2020

How to test if $host in nginx.conf starts with a substring and defining variables?

Is here a way to test if the $host variable for example starts with "www." for example?

if () {
...
}

How about if we wanted to test if it contains a certain substring?

And is here a way to define our own variables (global and local)?

Thanks.

Aucun commentaire:

Enregistrer un commentaire