Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:23:43+00:00 2026-06-15T11:23:43+00:00

As it is said in http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost I did put the proxy.cgi file in server

  • 0

As it is said in http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost I did put the proxy.cgi file in server where documentation is saying and It is showing the openlayer page while go to “http://mydomain.com/cgi-bin/proxy.cgi”. That means proxy set up is correctly done for the server. but while I try at my script use this proxy it is not working.
I put “OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";” in my script. so that the proxy can be used.

My code is here which is not working.

ainSelect = new OpenLayers.Control.WMSGetFeatureInfo({
                    url: 'http://ec2-23-22-12-137.compute-1.amazonaws.com:8080/geoserver/KCRE/wms',
                    title: 'Identify features by clicking',
                    layers: [lyrParcels],
                    queryVisible: true
                });
ainSelect.infoFormat = 'application/vnd.ogc.gml';
                ainSelect.events.register("getfeatureinfo", this, pickAINid);
                map.addControl(ainSelect);
                ainSelect.activate();

And pickAINid function is:

function pickAINid(e) {
            //alert(e.features.length);
            if (e.features && e.features.length) {

                var val = e.features[0].attributes.ain;
                alert(val);
                //document.getElementById('roadId').value = val;
            }
        }

So it should alert me the AIN number while i click on the map. As far as I’ve got it is getting e.features.length = 0. that means WMSGetFeatureInfo is not working correctly.

Please see that I’ve used the layers:[lyrParcels] I created that layer before which code i haven’t give here.

Another point. this code is just working fine while I run this code from my local.

Can anyone tell me what am I doing wrong? Is it on this “OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";” line?

Thanks in advance.

regards
Mahbubul Haque

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:23:44+00:00Added an answer on June 15, 2026 at 11:23 am

    in the proxy.cgi there is a list of allowed host at the top of the file ( like below).

    allowedHosts = ['www.openlayers.org', 'openlayers.org', 
                'labs.metacarta.com', 'world.freemap.in', 
                'prototype.openmnnd.org', 'geo.openplans.org',
                'sigma.openplans.org', 'demo.opengeo.org',
                'www.openstreetmap.org', 'sample.azavea.com',
                'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080', 
                'vmap0.tiles.osgeo.org', 'www.openrouteservice.org'] 
    

    If you havent you need to add the domain(and port in your case as its not 80) of the server you are contacting, in this case :

    ec2-23-22-12-137.compute-1.amazonaws.com:8080
    

    If this is not the source of the problem could you provide some more info from a javascript debugger such as firebug showing any errors or warning when you try to make the request through the proxy.

    UPDATE

    Its seems from testing your proxy on your server that you have an issue connection to port 8080 from inside your network.

    this can be tested by trying the urls

    http://kleincom.com/cgi-bin/proxy.cgi?url=http://v-swe.uni-muenster.de:8080
    

    and

    http://kleincom.com/cgi-bin/proxy.cgi?url=http://labs.metacarta.com
    

    The metacarta url works fine but the muenster url fails with a timeout issue. I would have a look at your out going firewall setting or similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My teacher said that Cohen Sutherland algorithm http://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm cannot be used with concave polygon.
In the following link http://www.faqs.org/docs/Linux-HOWTO/NFS-HOWTO.html It said a process is not killable except by
How to read binary streams from a HTTP streamer server in python. I did
I did what is said here http://www.pcreview.co.uk/forums/thread-1899493.php but in intellisense I only get Microsoft.VisualBasic.VBCodeProvider
On the http://pdepend.org/documentation/handbook/reports/overview-pyramid.html it is said that: NOP - The Number Of Packages metric
I tested this calendar on the icalendar validator ( http://severinghaus.org/projects/icv/ ) It said, invalid
It is said here http://kivy.org/docs/gettingstarted/intro.html?highlight=iphone On your computer, you can create apps that run
I read this: http://symfony.com/doc/current/book/service_container.html It said: $mailer = $this->get('my_mailer'); As an added bonus, the
I was reading http://embeddedgurus.com/embedded-bridge/2010/03/different-bit-types-in-different-registers/ , which said: With read/write bits, firmware sets and clears
On the manual page; http://dev.mysql.com/doc/refman/5.0/en/mysql-insert-id.html It is said that Returns the value generated for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.