Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Rate widget not working with nginx. Please help.
Rate widget not working with nginx. Please help.
Comments
Comment #1
rachidik CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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