Skip to content

Allow specification of the IP address to check via environment variable#64

Closed
nchelluri wants to merge 12 commits intomasterfrom
marcstern/envvar
Closed

Allow specification of the IP address to check via environment variable#64
nchelluri wants to merge 12 commits intomasterfrom
marcstern/envvar

Conversation

@nchelluri
Copy link
Contributor

No description provided.

Marc Stern and others added 12 commits September 4, 2018 17:34
- check for MMDB Lookup results and verify that they are different
  depending on whether the IP is set via the env var or not
- use an IP found in the database to confirm the lookup worked
[mod_remoteip](http://httpd.apache.org/docs/current/mod/mod_remoteip.html) may
be used to set the client IP address.

Manually setting the client IP address is also possible - see
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of the hyphen and add a period. "See" is the start of a new sentence.

In case you want supply your own value for the IP address to lookup, it may be
done by setting the environment variable `MMDB_ADDR`.
This can be done, for instance, with
[ModSecurity](https://github.com/SpiderLabs/ModSecurity/) in (real) phase 1.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we note that this doesn't actually work with ModSecurity out of the box (at least on most distros) and that you need to specially compile it? My primary objection to this change is that it is almost impossible to use this correctly.

ScriptAlias /cgi-bin/ "@ServerRoot@/cgi-bin/"

LogLevel debug
#LogLevel debug
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't leave uncommented code. Maybe we could switch it back to debug unless there is a good reason not to.

@nchelluri
Copy link
Contributor Author

Closing this PR, updated code is in #66

@nchelluri nchelluri closed this Sep 5, 2018
@nchelluri nchelluri deleted the marcstern/envvar branch September 5, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants