<div class="gmail_quote">2009/6/19 Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Fri, Jun 19, 2009 at 07:59:55AM -0700, Kevin Castiglione wrote:<br><br>> On Fri, Jun 19, 2009 at 7:48 AM, Edho P Arief <<a href="mailto:edhoprima@gmail.com">edhoprima@gmail.com</a>> wrote:<br>
><br>> > On Fri, Jun 19, 2009 at 9:28 PM, Kevin<br>> > Castiglione<<a href="mailto:kevincastiglione@gmail.com">kevincastiglione@gmail.com</a>> wrote:<br>> > > 2009/6/19 Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>><br>
> > >><br>> > >> On Fri, Jun 19, 2009 at 05:54:06AM -0700, Kevin Castiglione wrote:<br>> > >><br>> > >> > > Probably, you need<br>> > >> > ><br>> > >> > > fastcgi_param SCRIPT_FILENAME<br>
> > >> > > /home/app/work/flock/$host$fastcgi_script_name;<br>> > >> > ><br>> > >> > > or<br>> > >> > ><br>> > >> > > fastcgi_param SCRIPT_FILENAME<br>
> > >> > > $document_root/$host$fastcgi_script_name;<br>> > >> > ><br>> > >> > tried these with no results igor!<br>> > >><br>> > >> What server did you use before nginx ?<br>
> > ><br>> > > ive always used nginx. this is a new setup im trying to do.<br>> > > thank you<br>> > ><br>> > ><br>> ><br>> > how's the old setup looks like?<br>
><br>><br>> the config for the current setup is given below. i have different domains<br>> setup with different server blocks. i want to combine them to one fastcgi<br>> backend, and my webframe work supports only url level - sub application<br>
> processing. hence i need the url mapping.<br><br></div>So now you use differen ports in upstream, say, 8492:<br>
<div class="im"><br> server <a href="http://app1.xxx.com:8492/" target="_blank">app1.XXX.com:8492</a> fail_timeout=1s;<br><br></div>Yes ?</blockquote>
<div>yes, differentports</div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><span></span><br>With this configuraiton<br>
<div class="im"><br> fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;<br> fastcgi_param PATH_INFO $fastcgi_script_name;<br><br></div>both SCRIPT_FILENAME and PATH_INFO are equal to URI, i.e., if client<br>
requests "/some/page", then these parameter will be "/some/page" too.<br><br>Probably, you need<br><br> fastcgi_param SCRIPT_FILENAME /$host$fastcgi_script_name;<br> fastcgi_param PATH_INFO /$host$fastcgi_script_name;<br>
<br></blockquote>
<div>finally got it working</div>
<div>these are the changes i had to do</div>
<div> </div>
<div> fastcgi_param SCRIPT_NAME $host$fastcgi_script_name;<br> fastcgi_param SCRIPT_FILENAME /$host$fastcgi_script_name;<br> fastcgi_param PATH_INFO /$host$fastcgi_script_name;</div>
<div> </div>
<div> </div>
<div>thanks a lot igor and edho!</div></div>