<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I saw that OpenLayers.ProxyHost catch all requests globally.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I adopted this strategy to activate it just when WMSGetFeatureInfo is needed:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style:
 normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><code></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">function toggleControl(element) {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    for(key in mapControls) {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">      </span>var control = mapControls[key];</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span
 class="Apple-tab-span" style="white-space:pre"> </span>//alert ($(element).is('.ui-state-active'));</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">      </span>if(element.name == key && $(element).is('.ui-state-active')) {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">    </span>    control.activate();</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre"> </span>} else {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">  </span>    control.deactivate();</font></div><div
 style="background-color: transparent;"><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space:pre">       </span>}</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    if ( element.name == 'wmsgetfeatinfo' )</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">        {</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">            OpenLayers.ProxyHost = "http://"+ webgis_hostname + webgis_port +"/"+ url_prefix + "/proxy/?url=";</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">     
       </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">        }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    else   {  OpenLayers.ProxyHost = ''  }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    }</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">}</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></code></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">sorry for "if" statements but it was a patch during production setup.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">How could We declare OpenLayers.Control.WMSGetFeatureInfo and reserve Proxy just for featureinfo http request ?</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I'd prefer reduce main webserver load.</div><div style="font-family: 'times new roman', 'new york', times,
 serif; font-size: 12pt;">Thanks in advance</div></div></body></html>