Hi Boris,
I'd like to get the whole tarball, but I'm not sure how to contact you. I don't see your email anywhere and pm is turned off on these forums.
Also, after reverting to mod_geoip 1.2.9, the error messages went away, but I found another interesting quirk that isn't mentioned in your docs. The order of the LoadModule/AddModule statements in httpd.conf affects the blocking by country code capabilities. For example:
- Code: Select all
GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat
SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry
Deny from env=BlockCountry
The above code does not work if the modules aren't loaded in the correct order. The following module order DID NOT work for me:
- Code: Select all
LoadModule env_module libexec/mod_env.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule mime_magic_module libexec/mod_mime_magic.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
LoadModule info_module libexec/mod_info.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule dbmcookie_auth_module libexec/mod_auth_dbmcookie.so
LoadModule expires_module libexec/mod_expires.so
LoadModule headers_module libexec/mod_headers.so
LoadModule geoip_module libexec/mod_geoip.so
LoadModule setenvif_module libexec/mod_setenvif.so
LoadModule php5_module libexec/libphp5.so
<IfDefine SSL>
LoadModule ssl_module libexec/libssl.so
</IfDefine>
However, this order DOES work:
- Code: Select all
LoadModule env_module libexec/mod_env.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule mime_magic_module libexec/mod_mime_magic.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
LoadModule info_module libexec/mod_info.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule dbmcookie_auth_module libexec/mod_auth_dbmcookie.so
LoadModule expires_module libexec/mod_expires.so
LoadModule headers_module libexec/mod_headers.so
LoadModule setenvif_module libexec/mod_setenvif.so
LoadModule php5_module libexec/libphp5.so
LoadModule geoip_module libexec/mod_geoip.so
<IfDefine SSL>
LoadModule ssl_module libexec/libssl.so
</IfDefine>
Does mod_geoip have to be loaded after mod_setenvif, in order to use the country blocking example above? If so, that should be part of your docs.
Thanks,
--jeff