Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
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.
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
Comments
Comment #1
rachidik commentedi meet the same Problem..Its big problem in my website...
any one help as to fix this problem?
Thx
Comment #2
damienmckennaCan you please describe more clearly what functionality doesn't work, and whether it behaves differently for authenticated or anonymous users?
Comment #3
rachidik commentedfor 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??!!!
Comment #4
proxima8 commentedTry 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
Comment #5
ivnishDrupal 7 is EOL. Issue will be closed