Error message for anonymous users with recaptcha
cybertoast - February 12, 2009 - 23:57
| Project: | reCAPTCHA |
| Version: | 6.x-1.1 |
| Component: | reCAPTCHA Captcha |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I keep getting the error "For security reasons, you must pass the remote ip to reCAPTCHA" when I try to submit my contact form as an anonymous user. Authenticated users work fine. However, authenticated users don't need to use recaptcha, so there's probably a configuration issue with Drupal and my host somewhere.
I'm on a slicehost Ubuntu 8.10 instance, and Drupal 6.9. Thanks for any help.

#1
Figured it out. Turns out I did not have my nginx.conf file send the remote_address to fastcgi. Oops! For anyone who runs into a similar problem, make sure that your nginx config contains the following:
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
Obviously only remote_addr is necessary to fix the problem reported.