Mod GeoIP 1.2.8 directive for Apache 2.4.x x64 can't run

Started by chromerep, June 26, 2013, 02:32:31 AM

Previous topic - Next topic

chromerep

I download Mod GeoIP 1.2.8 for Apache 2.4.x x64 from AH.But,it shows can't load mod_geoip.so at conf file.I make a try to download Mod GeoIP 1.2.7 for Apache 2.4.x x64 from AH,it runs well.

Does it something wrong with Mod GeoIP 1.2.8 for Apache 2.4.x x64? ;)

Gregg

Possibly, what version of Windows are you running?

It's not loading on my XP x86, but loads fine on my Vista x86. I realize your talking x64 though. I think I'll put 1.2.7b back on the download page anyway.

chromerep

I run it under win 2008R2 server(apache2.4).And,I find it can't set allowed country code either both 1.2.7 and 1.2.8 via http://dev.maxmind.com/geoip/legacy/mod_geoip2/.Is there any right directive to provide to tuning?

Gregg

GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat

SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
# ... place more countries here
<Directory "/path/to/some/website">
# your Options and AllowOverrides and anything else
Require env AllowCountry

</Directory>

I believe the above should work in 2.4

I'm surprised 1.2.8 doesn't load in 2008R2, It should in Vista and up. Do you get a "The specified procedure could not be found." in the error message?

DnvrSysEngr

I have it running on a 32-bit Windows 2008 server.  Made no changes whatsoever to my .conf files when upgrading from 1.2.7b to 1.2.8.

- S

chromerep

Gregg:

Can you post Block country full directives fro httpd.conf use? :)
The allowed directives works fine.And,I need the block directives too.

Quote from: Gregg on June 26, 2013, 11:31:47 PM
GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat

SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
# ... place more countries here
<Directory "/path/to/some/website">
# your Options and AllowOverrides and anything else
Require env AllowCountry
</Directory>


Gregg

If I remember correctly, it was

SetEnvIf GEOIP_COUNTRY_CODE US BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE CA BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE MX BlockCountry
# ... place more countries here
<Directory "/path/to/some/website">
# your Options and AllowOverrides and anything else
  <RequireAll>
    Require all granted
    Require not env BlockCountry
  </RequireAll>
</Directory>


although I do see this in my config

  <RequireAll>   
    Require all granted
    <RequireNone>
      Require env BlockCountry
    </RequireNone>
  </RequireAll>   


chromerep

Thanks.And..
Would yould please to fix mod_geoip1.2.8 for 2008R2 x64 to use?

DnvrSysEngr

Gregg:

I can concur that there is an issue with the 64-bit Mod_GeoIP module.  I have a 64-bit Windows8 development box running the 64-bit version of Apache 2.4.4.  I replaced Mod_GeoIP 1.2.7b with 1.2.8 and Apache 2.4.4 would not start.  The moment I reverted back to 1.2.7b, Apache 2.4.4 started.

- S

Gregg

OK, thanks for the reports. Am pulling 1.2.8 now. Look for 1.2.8a in the near future.

Gregg

OK, 1.2.8a is available. I hope these work for you. It's impossible to get any kind of debugging data on windows short of installing a full version of Visual C++. So if I cannot duplicate the problem, it's hard to track it down.

chromerep

#11
Mod_geoip1.2.8a works under 2008R2 now. :)

And,what is the directive of allowed ip(such as private ip...or another blockcountry ip..) at blockcountry setting.I try to use "allow from 192.168.0.0/16" directive,but not works.

mario

Allow from is not 2.4 style. Use the require style.

Require ip 192.168

chromerep

#13
It shows "systax error and unknown authz provider" when use "require" directive under apache2.4.4 ::)

So strange?

Gregg