<br><br><div class="gmail_quote">On Dec 19, 2007 3:59 PM, Eden Li <<a href="mailto:eden@mojiti.com">eden@mojiti.com</a>> 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> # no server_name statement<br><br> set $subdomain "index.html";<br> if ($http_host ~ "^(.+?)\.") {<br> set $subdomain $1;<br> }<br><br> rewrite ^/(.*) <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> ~Wayne<br></div></div>