I tried to configure my rails app to allow access from only one IP, but the result was that I couldn't access the website even from my IP. (I checked and double-checked my IP, using http://www.whatismyip.com/) I modified the nginx config file such that:
I likewise tried putting my allow/deny commands in the http block and in a asked 16 Oct '12, 10:11 TwitTheKnife |
Hi, The problem is that your Nginx instance is running behind a proxy, so the IP it sees is always 127.0.0.1. To fix this, you would have to recompile Nginx with the --with-http_realip_module option (HttpRealipModule). You will then have to edit your Nginx configuration and fix the IP by adding the following:
answered 16 Oct '12, 10:50 todork Thanks. I've never done anything like this, and I shouldn't like to omit any options currently enabled. Do you know a way to view all options currently enabled on nginx?
(16 Oct '12, 13:58)
TwitTheKnife
1
You can see the configuration options on your current Nginx by running:
Hope that helps!
(16 Oct '12, 16:10)
seanf
|