Rate widget not working with nginx. Please help.

Comments

rachidik’s picture

i meet the same Problem..Its big problem in my website...

any one help as to fix this problem?

Thx

DamienMcKenna’s picture

Issue tags: -nginx config, -Works on nginx

Can you please describe more clearly what functionality doesn't work, and whether it behaves differently for authenticated or anonymous users?

rachidik’s picture

for me i use this module version 7.x-4.x-dev for https://drupal.org/project/answers .

voting for question on my site on Nginx not working ( note calculate and save vote) , but work fine in apache web server.

i have same problem on other web site use rate module : when i click sur Thumbs up , no change ...no save vote, only in webserver nginx i receive this probleme.

any Help??!!!

proxima8’s picture

Try to reach "/rate/vote/js" url on your server.
If you get "404 Not Found" page you should check your nginx.conf file,
look for something like this:
location ~* ^.+.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
in my conf there was unshielded dot in condition, so nginx will try to statically serve not only .js files, but /js directories too!

Change the condition to:
location ~* \.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
and it will be work just fine