<br><br><div class="gmail_quote">On Dec 19, 2007 3:59 PM, Eden Li &lt;<a href="mailto:eden@mojiti.com">eden@mojiti.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
server {<br> &nbsp;# no server_name statement<br><br> &nbsp;set $subdomain &quot;index.html&quot;;<br> &nbsp;if ($http_host ~ &quot;^(.+?)\.&quot;) {<br> &nbsp; &nbsp;set &nbsp;$subdomain &nbsp;$1;<br> &nbsp;}<br><br> &nbsp;rewrite &nbsp;^/(.*) &nbsp; <a href="http://staging.example.com/$subdomain/$1" target="_blank">
http://staging.example.com/$subdomain/$1</a> last;<br>}<br><br></blockquote><div>Thanks for the reply Eden!<br><br>This alas does not do the trick.<br><br>changing last to permanent semi works except that it rewrites the users url which is not the goal.
<br>So I need something that is transparent to the user. Any more ideas?<br><br>Thanks again!<br><br>&nbsp; ~Wayne<br></div></div>