change ofbiz https port (solved?)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

change ofbiz https port (solved?)

info@agentur-m3.de


Now I found another file  to configure  port changes:

  framework/webapp/config/url.properties

I tried to change port.https:

  port.https.enabled=Y
  # empty by default see OFBIZ-9206
  port.https=8445
  force.https.host=

and ALSO in

  /framework/catalina/ofbiz-component.xml

as already said.

To configure both of the entries then seems to
produce correct links (on first sight)
for https-requests.


As said before, I could not test changes for http or 80/8080,
cause I could not find a valid demo or starting point for http calls
in OFBiz.


Thanks and best regards!




-------- Weitergeleitete Nachricht --------
Betreff: Re: change ofbiz https port
Datum: Wed, 2 May 2018 12:15:43 +0200
Von: [hidden email] <[hidden email]>
An: [hidden email]

Thank you Deepak,

the global portoffset works for https and 8443.

Is there any callable page for standard http port 8080  (will it be
changed to 18080 in case portoffset =10000)
to test this?

It tried to call e.g. http://myerser:18080/webtools/control/main

which brings up an error message:

java.lang.NumberFormatException: For input string: ""












Am 02.05.2018 um 10:37 schrieb Deepak Dixit:

> Did you try with portoffset parameter.
>
> *You may also use the global portoffset Java properties. Use "gradlew
> "ofbiz ?" or "java -jar build/libs/ofbiz.jar -h" to know more about this
> option.*
>
> Thanks & Regards
> --
> Deepak Dixit
> www.hotwax.co
>
> On Wed, May 2, 2018 at 1:42 PM, [hidden email] <[hidden email]>
> wrote:
>
>> Hello,
>>
>> I tryto change the https port 8443 for ofbiz.
>>
>> According to this:
>> https://www.thesisscientist.com/Docs/Others/f76e6628-ed35-
>> 46a2-8f25-c7f7f09ce470
>>
>> the property for this should be foudn in
>> framework/base/config/ofbiz-containers.xml
>>
>> According to
>> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
>> Production+Setup+Guide
>>
>> it should be found in ofbiz-containers.xml
>>
>>
>> In the current download version it seems to be in
>> /framework/catalina/ofbiz-component.xml
>>
>> There I changed the property for https:
>>
>>   <property name="https-connector" value="connector">
>>             <!-- see http://tomcat.apache.org/tomcat-8.0-doc/config
>> /http.html for reference -->
>>             <!--<property name="address" value=""/>-->
>>             <property name="port" value="8441"/>
>>
>>
>> The connection:
>>
>>   https://myserver:8441/webtools/control/main
>>
>> really brings up the page, so the system seems to recognize the
>> changed port.
>>
>> But when I try to click on "Login", a surprising link:
>>
>>   https://0.0.32.252:8444/webtools/control/checklogin/main
>>
>> is shown and the login does not lead to the login  screen.
>>
>>
>> Is there any other configuration necessary?
>>
>>
>> Thank you!
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: change ofbiz https port (solved?)

Jacques Le Roux
Administrator
Do you have this in your url.properties file?

# If you want to use HTTP then set no.http=N. Else all requests will use HTTPS (also enforced by a HSTS header) except if put in the
http.request-map.list
no.http=Y
http.request-map.list=SOAPService,xmlrpc,viewShipmentLabel

Jacques


Le 02/05/2018 à 13:46, [hidden email] a écrit :

>
> Now I found another file  to configure  port changes:
>
>    framework/webapp/config/url.properties
>
> I tried to change port.https:
>
>    port.https.enabled=Y
>    # empty by default see OFBIZ-9206
>    port.https=8445
>    force.https.host=
>
> and ALSO in
>
>    /framework/catalina/ofbiz-component.xml
>
> as already said.
>
> To configure both of the entries then seems to
> produce correct links (on first sight)
> for https-requests.
>
>
> As said before, I could not test changes for http or 80/8080,
> cause I could not find a valid demo or starting point for http calls
> in OFBiz.
>
>
> Thanks and best regards!
>
>
>
>
> -------- Weitergeleitete Nachricht --------
> Betreff: Re: change ofbiz https port
> Datum: Wed, 2 May 2018 12:15:43 +0200
> Von: [hidden email] <[hidden email]>
> An: [hidden email]
>
> Thank you Deepak,
>
> the global portoffset works for https and 8443.
>
> Is there any callable page for standard http port 8080  (will it be
> changed to 18080 in case portoffset =10000)
> to test this?
>
> It tried to call e.g. http://myerser:18080/webtools/control/main
>
> which brings up an error message:
>
> java.lang.NumberFormatException: For input string: ""
>
>
>
>
>
>
>
>
>
>
>
>
> Am 02.05.2018 um 10:37 schrieb Deepak Dixit:
>> Did you try with portoffset parameter.
>>
>> *You may also use the global portoffset Java properties. Use "gradlew
>> "ofbiz ?" or "java -jar build/libs/ofbiz.jar -h" to know more about this
>> option.*
>>
>> Thanks & Regards
>> --
>> Deepak Dixit
>> www.hotwax.co
>>
>> On Wed, May 2, 2018 at 1:42 PM, [hidden email] <[hidden email]>
>> wrote:
>>
>>> Hello,
>>>
>>> I tryto change the https port 8443 for ofbiz.
>>>
>>> According to this:
>>> https://www.thesisscientist.com/Docs/Others/f76e6628-ed35-
>>> 46a2-8f25-c7f7f09ce470
>>>
>>> the property for this should be foudn in
>>> framework/base/config/ofbiz-containers.xml
>>>
>>> According to
>>> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+
>>> Production+Setup+Guide
>>>
>>> it should be found in ofbiz-containers.xml
>>>
>>>
>>> In the current download version it seems to be in
>>> /framework/catalina/ofbiz-component.xml
>>>
>>> There I changed the property for https:
>>>
>>>    <property name="https-connector" value="connector">
>>>              <!-- see http://tomcat.apache.org/tomcat-8.0-doc/config
>>> /http.html for reference -->
>>>              <!--<property name="address" value=""/>-->
>>>              <property name="port" value="8441"/>
>>>
>>>
>>> The connection:
>>>
>>>    https://myserver:8441/webtools/control/main
>>>
>>> really brings up the page, so the system seems to recognize the
>>> changed port.
>>>
>>> But when I try to click on "Login", a surprising link:
>>>
>>>    https://0.0.32.252:8444/webtools/control/checklogin/main
>>>
>>> is shown and the login does not lead to the login  screen.
>>>
>>>
>>> Is there any other configuration necessary?
>>>
>>>
>>> Thank you!
>>>
>