Trying to working our with javascript

hi i have java script document in /js/test.js

when i try to access that file i am getting error
www.domain.com/js/test.js

500 Internal Server Error
nginx/0.8.53

error log showing me this

2011/02/06 15:12:44 [error] 11249#0: *704 rewrite or internal
redirection cycle while processing "/lightbox$
2011/02/06 15:13:33 [error] 11245#0: *791 rewrite or internal
redirection cycle while processing "/lightbox$
2011/02/06 15:16:43 [error] 11245#0: *1165 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:17:58 [error] 11239#0: *1321 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:19:00 [error] 11240#0: *1402 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:19:23 [error] 11240#0: *1452 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:19:27 [error] 11247#0: *1473 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:19:54 [error] 11247#0: *1558 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:20:02 [error] 11247#0: *1585 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:20:15 [error] 11242#0: *1640 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:20:17 [error] 11242#0: *1652 rewrite or internal
redirection cycle while processing "/lightbo$
2011/02/06 15:20:22 [error] 11242#0: *1677 rewrite or internal
redirection cycle while processing "/lightbo$

how can i get rid of this problem i also give 755 js directory

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,172510,172510#msg-172510

Hello!

On Sun, Feb 06, 2011 at 01:21:20AM -0500, lifeisjustabout wrote:

2011/02/06 15:12:44 [error] 11249#0: *704 rewrite or internal
redirection cycle while processing "/lightbox$

[…]

how can i get rid of this problem i also give 755 js directory

Get rid of rewrite cycle in your config, this will resolve the
problem.

Maxim D.

please show me your nginx.conf , thanks.

On Sun, Feb 6, 2011 at 2:21 PM, lifeisjustabout
[email protected]wrote:

2011/02/06 15:19:23 [error] 11240#0: *1452 rewrite or internal
redirection cycle while processing "/lightbo$


nginx mailing list
[email protected]
http://nginx.org/mailman/listinfo/nginx


博观约取

豆瓣:www.douban.com/people/mustang/

blog: www.pagefault.info

twitter: www.twitter.com/minibobo

Hi Maxim it works now i added this into nginx conf

rewrite /(.)(js/)(.)$ /$2$3$4 last;

thanks for your help

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,172510,172710#msg-172710

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs