I've got a vhost currently configured as:
VirtualHost {
Hostname = www.git.example.com,git.example.com
Alias = /.well-known:/var/www/well-known
EnforceFirstHostname = yes
WebsiteRoot = /var/www/null
ReverseProxy .* http://localhost:3000/
}
The Alias entry works for other subdomains I've configured,
(interestingly, vhosts do NOT inherit Alias entry from the default/top-level config — I have to insert it manually into every vhost. Which I guess makes sense for purposes other than ACME auth, but is still a bit annoying; is there any "HeritableAlias" or something like that? But this is tangential so feel free to ignore this whole parenthetical.)
however in this case the Reverse Proxy matching is a higher priority than the Alias matching (which makes sense on a number of levels, given that the Regexes are the more flexible it excludes no use-cases this way); however I can't seem to get it to agree with my regex for "every string which does not start with forward-slash-dot-well-space-known":
ReverseProxy (?!^/\.well-known).* http://localhost:3000/
yields "Syntax error in vhosts.conf.d/git.conf on line 6." (I have tried placing the caret both inside or outside the parenthesis, to no avail.)
according to most sources, this is the way to go about this; however, given that Hiawatha includes some convenience modifications to Regex already, am I just missing something?