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.

Comments

cybertoast’s picture

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.

the_g_bomb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.