Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
server_name example.com www.example.com;
root /var/www/pub;
}
server {
server_name ~^(.*)\.example\.com$ ;
root /var/www/pub/$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.