Simplify public_domain variable passing to apache/nginx.