Hi All, Let me explain the rationale behind defining a proxy port. Proxy port is a way to let LB know, that LB should redirect all the requests that are coming to it (i.e. proxy port) to mapped host port (i.e. port). This mapping becomes vital when LB exposes multiple ports (i.e. you can define n number of transport receivers in LB). Hence, if you require a Cartridge to be load balanced, and then it's a must to define the port mapping and it's not practical to define a default value due to the fact that people have the liberty to change the transport receiver configurations in LB.
On Tue, Sep 9, 2014 at 8:36 AM, Akila Ravihansa Perera <raviha...@wso2.com> wrote: > Hi Prasanna, > > This commenting is not relevant since LB axis2.xml is deployed via Puppet. > Please check Puppet lb module templates. > On 9 Sep 2014 08:19, "Prasanna Dangalla" <prasa...@wso2.com> wrote: > >> Hi sajith, >> >> In LB's axis2.xml file. (in <LB_HOME>/repository/conf/axis2/axis2.xml), >> the below mentioned part is commented. Is this the reason because ports >> 8280 and 8243 are commented in this. >> >> <!-- uncomment for non blocking http transport based on HttpCore + >> NIO extensions --> >> <!-- transportReceiver name="http" >> class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener"> >> <parameter name="port" locked="false">8280</parameter> >> <parameter name="non-blocking" locked="false">true</parameter --> >> <!--parameter name="bind-address" locked="false">hostname or IP >> address</parameter--> >> <!--parameter name="WSDLEPRPrefix" >> locked="false">https://apachehost:port/somepath</parameter--> >> <!-- parameter name="httpGetProcessor" >> locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter> >> </transportReceiver --> >> >> <!-- the non blocking https transport based on HttpCore + SSL-NIO >> extensions --> >> <!-- transportReceiver name="https" >> class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener"> >> <parameter name="port" locked="false">8243</parameter> >> <parameter name="non-blocking" locked="false">true</parameter --> >> <!--parameter name="bind-address" locked="false">hostname or IP >> address</parameter--> >> <!--parameter name="WSDLEPRPrefix" >> locked="false">https://apachehost:port/somepath</parameter--> >> <!-- parameter name="httpGetProcessor" >> locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter> >> <parameter name="keystore" locked="false"> >> <KeyStore> >> >> <Location>repository/resources/security/wso2carbon.jks</Location> >> <Type>JKS</Type> >> <Password>wso2carbon</Password> >> <KeyPassword>wso2carbon</KeyPassword> >> </KeyStore> >> </parameter> >> <parameter name="truststore" locked="false"> >> <TrustStore> >> >> <Location>repository/resources/security/client-truststore.jks</Location> >> <Type>JKS</Type> >> <Password>wso2carbon</Password> >> </TrustStore> >> </parameter --> >> <!--<parameter name="SSLVerifyClient">require</parameter> >> supports optional|require or defaults to none --> >> <!-- /transportReceiver --> >> >> >> On Tue, Sep 9, 2014 at 12:04 AM, Chamila De Alwis <chami...@wso2.com> >> wrote: >> >>> Setting proxyPort to 80 works successfully. >>> >>> >>> >>> >>> Regards, >>> Chamila de Alwis >>> Software Engineer | WSO2 | +94772207163 >>> Blog: code.chamiladealwis.com >>> >>> >>> >>> On Mon, Sep 8, 2014 at 10:42 PM, Udara Liyanage <ud...@wso2.com> wrote: >>> >>>> Instead of 0 could you try with 80. >>>> >>>> >>>> >>>> Touched, not typed. Erroneous words are a feature, not a typo. >>>> >>> >>> >> >> >> -- >> Prasanna Dangalla >> Software Engineer, WSO2, Inc.; http://wso2.com/ >> lean.enterprise.middleware >> >> cell: +94 777 55 80 30 | +94 718 11 27 51 >> twitter: @prasa77 >> > -- Best Regards, Nirmal Nirmal Fernando. PPMC Member & Committer of Apache Stratos, Senior Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/