2009/6/18 Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Jun 18, 2009 at 06:38:54AM -0700, Kevin Castiglione wrote:<br>
<br>
> 2009/6/18 Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>><br>
><br>
> > On Wed, Jun 17, 2009 at 09:22:46PM -0700, Kevin Castiglione wrote:<br>
> ><br>
> > > hei guys<br>
> > > i want all urls to be re-written as follows:<br>
> > ><br>
> > > xx /host/xx<br>
> > ><br>
> > > xx is the url full path, it should be written as /domain/xx where host is<br>
> > > the hostname.<br>
> > ><br>
> > > for example <a href="http://www.ABCD.COM" target="_blank">www.ABCD.COM</a> <<a href="http://www.abcd.com/" target="_blank">http://www.abcd.com/</a>><br>
> > ><br>
> > > /test?1 ---> /<a href="http://ABCD.COM/test?1" target="_blank">ABCD.COM/test?1</a> <<a href="http://abcd.com/test?1" target="_blank">http://abcd.com/test?1</a>><br>
> > > is it possible to do this with nginx?<br>
> > > thank you!<br>
> ><br>
> > Should it be redirect or what ?<br>
> ><br>
><br>
> i dont want it to be a permanent redirect. i just want the url to be<br>
> rewritten for application processing. i want different domains to be handled<br>
> by same web app an dmy webframe work supports only url-level application<br>
> mapping. that is why i need this rewrite.<br>
> thank you<br>
<br>
</div></div>If you use proxing, then<br>
<br>
server {<br>
<br>
location / {<br>
proxy_pass <a href="http://backend/$host$request_uri" target="_blank">http://backend/$host$request_uri</a>;<br>
<div><div></div><div class="h5"> }<br>
<br>
}</div></div></blockquote><div>im using fastcgi backend. <br></div></div><br>