In fact it doesn't. thank you anyway
what I'm looking for is some help with a named regular expression, something like this but able to work with my particular example. Thank you
A named regular expression capture can be used later as a variable:
server {
server_name ~^(www\.)?(?<domain>.+)$;
location / {
root /sites/$domain;
}
}
what I'm looking for is some help with a named regular expression, something like this but able to work with my particular example. Thank you
A named regular expression capture can be used later as a variable:
server {
server_name ~^(www\.)?(?<domain>.+)$;
location / {
root /sites/$domain;
}
}