Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Wildcard subdomains pointing each one to a folder with the same name as subdomain

$
0
0
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;
}
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>