I'm using Hiawatha's reverse proxy functionality to forward requests to multiple servers. However, it seems that Hiawatha is having trouble handling some forms of regular expression as I get syntax errors. I used regex101.com to verify my regular expressions, and the results can be seen here: https://regex101.com/r/JON5YU/2 . However, Hiawatha gives me a syntax error when using this regular expression. Are there some regular expressions that Hiawatha cannot handle or is there a different way I should be handling this? Relevant VirtualHost below:
VirtualHost{
Hostname=127.0.0.1
WebsiteRoot = /path/to/website
StartFile =index.html
AccessLogfile = /path/to/access.log
ErrorLogfile = /path/to/error.log
ReverseProxy ^(?!\/foo).*$ http://localhost:3000/ #should redirect everything that doesn't start with /foo. Syntax error apparently here
ReverseProxy ./foo* http://127.0.0.1:3011/ #should redirect everything that starts with /foo
}