Announcement

Collapse
No announcement yet.

Anyone here using the GeoIP module here please?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Anyone here using the GeoIP module here please?

    Anyone here using the GeoIP module here please? Is the part below, for the .HTaccess file, correct ?

    GeoIPDBFile /opt/geoip/share/GeoIP/GeoIP.dat
    http://www.eUKhost.com

  • #2
    Anyone here??
    http://www.eUKhost.com

    Comment


    • #3
      Hi there..

      Yeah, it looks correct. One of the examples as below

      GeoIPEnable On
      GeoIPDBFile /path/to/GeoIP.dat
      Cristiano


      MSN :: cristiano @ eukhost.com
      Skype :: cristiano.dawson

      Comment


      • #4
        Hello,

        Please refer this URL "http://www.wowtutorial.org/linux-servers/how-install-geoip-module-apache-2-378.html " to check the correct code in .htacces and httpd.conf file.

        Comment


        • #5
          Hello Chris,

          I have never tried it on our server but while searching for relevant issue I come across one solution : "GeoIPDBFile command wil not work in .htaccess."

          You will need to include "GeoIP.dat" file in your httpd configuration file i.e httpd.conf.

          Code:
          Make sure that your httpd.conf file look something like this.
          
          GeoIPEnable On
          GeoIPDBFile /<path for your>/GeoIP.dat
          
          SetEnvIf GEOIP_COUNTRY_CODE GB AllowCountry
          -----------
          Add following code in your  .htaccess file under your domain.
          
          Deny from all
          Allow from env=AllowCountry
          Hope it will work for you

          Comment


          • #6
            Many thanks Nick, Christiano and Ronnie - the info is appreciated. Currently, in my .htaccess file, is :

            GeoIPEnable On
            GeoIPDBFile /opt/geoip/share/GeoIP/GeoIP.dat

            RewriteEngine on
            RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CA|UK|US|MX)$
            RewriteRule ^(.*)$ http://www.northamerica.com$1 [L]

            Should that work please?

            Thanks.

            Chris
            http://www.eUKhost.com

            Comment


            • #7
              Originally posted by _Chris_ View Post
              Many thanks Nick, Christiano and Ronnie - the info is appreciated. Currently, in my .htaccess file, is :

              GeoIPEnable On
              GeoIPDBFile /opt/geoip/share/GeoIP/GeoIP.dat

              RewriteEngine on
              RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CA|UK|US|MX)$
              RewriteRule ^(.*)$ http://www.northamerica.com$1 [L]

              Should that work please?

              Thanks.

              Chris
              Yeah, it should. The same code is mentioned at MaxMind
              Cristiano


              MSN :: cristiano @ eukhost.com
              Skype :: cristiano.dawson

              Comment


              • #8
                Originally posted by NickJ View Post
                Hello Chris,

                I have never tried it on our server but while searching for relevant issue I come across one solution : "GeoIPDBFile command wil not work in .htaccess."

                You will need to include "GeoIP.dat" file in your httpd configuration file i.e httpd.conf.

                Code:
                Make sure that your httpd.conf file look something like this.
                
                GeoIPEnable On
                GeoIPDBFile /<path for your>/GeoIP.dat
                
                SetEnvIf GEOIP_COUNTRY_CODE GB AllowCountry
                -----------
                Add following code in your  .htaccess file under your domain.
                
                Deny from all
                Allow from env=AllowCountry
                Hope it will work for you
                Did you get the PM, Nick?
                http://www.eUKhost.com

                Comment


                • #9
                  Hello Chris,

                  Yes, I just came in. I have replied to your PM.

                  Comment

                  Working...
                  X