allow wildcard domains based on public dir