<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt> </tt><tt>Hello,</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> </tt><tt>i try to setup a catch all proxy server with
nginx.</tt><tt><br>
</tt><tt> </tt><tt>I want to catch domains like this but have only
domainname (without subdomain) in $domain</tt><tt><br>
</tt><tt></tt><br>
<tt><tt>In this example from nginx docs domain has "fullname".<br>
<br>
</tt></tt><tt>server {
</tt><tt><br>
</tt><tt> server_name ~^(www\.)?(</tt><tt><b>?<domain></b></tt><tt>.+)$;
<br>
root /sites/</tt><tt><b>$domain</b></tt><tt>;<br>
}</tt><tt><br>
</tt><tt></tt><br>
<tt><tt>servername: <a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a> -> $domain should be
example.com</tt><tt><br>
</tt><br>
</tt><tt>Best Regards</tt><tt> </tt>
</body>
</html>