Using Different HTTPS Port

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

Using Different HTTPS Port

Bagas Sanjaya
Hello all,

I'd like to run two OFBiz instances; one for demo and one for
production. For production instance, I stick with default HTTPS port
(8443). For demo, however, I had to choose other port in order to avoid
conflict with production.

On Technical Production Setup Guide [1], port numbers are defined on
ofbiz-containers.xml file. Unfortunately, I didn't find the mentioned
file on my instance (as I use git repo instead). How can I define
different HTTPS port?

Bagas


[1]:
https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide

--
An old man doll... just what I always wanted! - Clara
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
With Gradle you don't need to worry about that (the doc needs some update).

Simply define the ports to use with "--portoffset myPortNumber"

The official OFBiz demos run on the same VM, you can find the config used for the stable release (R16) in

https://github.com/apache/ofbiz-tools/blob/master/demo-backup/stable-manual.sh

HTH

Jacques

Le 13/12/2019 à 13:31, Bagas Sanjaya a écrit :

> Hello all,
>
> I'd like to run two OFBiz instances; one for demo and one for production. For production instance, I stick with default HTTPS port (8443). For demo,
> however, I had to choose other port in order to avoid conflict with production.
>
> On Technical Production Setup Guide [1], port numbers are defined on ofbiz-containers.xml file. Unfortunately, I didn't find the mentioned file on
> my instance (as I use git repo instead). How can I define different HTTPS port?
>
> Bagas
>
>
> [1]: https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide
>
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Mathieu Lirzin
Hello Jacques,

Jacques Le Roux <[hidden email]> writes:

> With Gradle you don't need to worry about that (the doc needs some update).
>
> Simply define the ports to use with "--portoffset myPortNumber"

This works without Gradle too because ‘--portoffset’ is an OFBiz option:

$ gradlew jar
$ java -jar build/libs/ofbiz.jar --portoffset 14

--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
Hi Mathieu

Yes I know, I did it[1], not w/o initial reluctances from others[2] :)

I spoke about Gradle because Bagas said "I use git repo", so Gradle

[1] https://issues.apache.org/jira/browse/OFBIZ-3162
[2] https://issues.apache.org/jira/browse/OFBIZ-4794

Jacques

Le 13/12/2019 à 16:11, Mathieu Lirzin a écrit :

> Hello Jacques,
>
> Jacques Le Roux <[hidden email]> writes:
>
>> With Gradle you don't need to worry about that (the doc needs some update).
>>
>> Simply define the ports to use with "--portoffset myPortNumber"
> This works without Gradle too because ‘--portoffset’ is an OFBiz option:
>
> $ gradlew jar
> $ java -jar build/libs/ofbiz.jar --portoffset 14
>
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
Ha wait, got it

I did think about "gradlew jar"!

Interesting

Jacques

Le 13/12/2019 à 16:31, Jacques Le Roux a écrit :

> Hi Mathieu
>
> Yes I know, I did it[1], not w/o initial reluctances from others[2] :)
>
> I spoke about Gradle because Bagas said "I use git repo", so Gradle
>
> [1] https://issues.apache.org/jira/browse/OFBIZ-3162
> [2] https://issues.apache.org/jira/browse/OFBIZ-4794
>
> Jacques
>
> Le 13/12/2019 à 16:11, Mathieu Lirzin a écrit :
>> Hello Jacques,
>>
>> Jacques Le Roux <[hidden email]> writes:
>>
>>> With Gradle you don't need to worry about that (the doc needs some update).
>>>
>>> Simply define the ports to use with "--portoffset myPortNumber"
>> This works without Gradle too because ‘--portoffset’ is an OFBiz option:
>>
>> $ gradlew jar
>> $ java -jar build/libs/ofbiz.jar --portoffset 14
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
Le 13/12/2019 à 16:34, Jacques Le Roux a écrit :
> Ha wait, got it
>
> I did think about "gradlew jar"!
              ^not

>
> Interesting
>
> Jacques
>
> Le 13/12/2019 à 16:31, Jacques Le Roux a écrit :
>> Hi Mathieu
>>
>> Yes I know, I did it[1], not w/o initial reluctances from others[2] :)
>>
>> I spoke about Gradle because Bagas said "I use git repo", so Gradle
>>
>> [1] https://issues.apache.org/jira/browse/OFBIZ-3162
>> [2] https://issues.apache.org/jira/browse/OFBIZ-4794
>>
>> Jacques
>>
>> Le 13/12/2019 à 16:11, Mathieu Lirzin a écrit :
>>> Hello Jacques,
>>>
>>> Jacques Le Roux <[hidden email]> writes:
>>>
>>>> With Gradle you don't need to worry about that (the doc needs some update).
>>>>
>>>> Simply define the ports to use with "--portoffset myPortNumber"
>>> This works without Gradle too because ‘--portoffset’ is an OFBiz option:
>>>
>>> $ gradlew jar
>>> $ java -jar build/libs/ofbiz.jar --portoffset 14
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Bagas Sanjaya
In reply to this post by Jacques Le Roux
But this method only affects landing pages. Subsequent access pages use
offset port. For example, after landing on Webtools landing to login,
the URL generated to actual login page now point to port 523.

On 13/12/19 20.47, Jacques Le Roux wrote:

> With Gradle you don't need to worry about that (the doc needs some update).
>
> Simply define the ports to use with "--portoffset myPortNumber"
>
> The official OFBiz demos run on the same VM, you can find the config
> used for the stable release (R16) in
>
> https://github.com/apache/ofbiz-tools/blob/master/demo-backup/stable-manual.sh 
>
>
> HTH
>
> Jacques
>
> Le 13/12/2019 à 13:31, Bagas Sanjaya a écrit :
>> Hello all,
>>
>> I'd like to run two OFBiz instances; one for demo and one for
>> production. For production instance, I stick with default HTTPS port
>> (8443). For demo, however, I had to choose other port in order to
>> avoid conflict with production.
>>
>> On Technical Production Setup Guide [1], port numbers are defined on
>> ofbiz-containers.xml file. Unfortunately, I didn't find the mentioned
>> file on my instance (as I use git repo instead). How can I define
>> different HTTPS port?
>>
>> Bagas
>>
>>
>> [1]:
>> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide 
>>
>>

--
An old man doll... just what I always wanted! - Clara
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
Le 14/12/2019 à 09:57, Bagas Sanjaya a écrit :
> But this method only affects landing pages. Subsequent access pages use offset port.
What do you mean? offsetport parameter changes the port for all URLs (HTTP and HTTPS). What do you want exactly?
> For example, after landing on Webtools landing to login, the URL generated to actual login page now point to port 523.
We use it for stable and old demos for years and as you can see we have not this problem.

Do you use a proxy (HTTPD, Niginx) ? And If so what is you setting? If not, did you change something else in url.properties or elsewhere related to
HTTPS port?

Jacques


>
> On 13/12/19 20.47, Jacques Le Roux wrote:
>> With Gradle you don't need to worry about that (the doc needs some update).
>>
>> Simply define the ports to use with "--portoffset myPortNumber"
>>
>> The official OFBiz demos run on the same VM, you can find the config used for the stable release (R16) in
>>
>> https://github.com/apache/ofbiz-tools/blob/master/demo-backup/stable-manual.sh
>>
>> HTH
>>
>> Jacques
>>
>> Le 13/12/2019 à 13:31, Bagas Sanjaya a écrit :
>>> Hello all,
>>>
>>> I'd like to run two OFBiz instances; one for demo and one for production. For production instance, I stick with default HTTPS port (8443). For
>>> demo, however, I had to choose other port in order to avoid conflict with production.
>>>
>>> On Technical Production Setup Guide [1], port numbers are defined on ofbiz-containers.xml file. Unfortunately, I didn't find the mentioned file on
>>> my instance (as I use git repo instead). How can I define different HTTPS port?
>>>
>>> Bagas
>>>
>>>
>>> [1]: https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Bagas Sanjaya
I just want to change OFBiz ports, while keeping standard HTTP(s) port
(80 & 443) for use by proxy (NGINX).

Regardless, my url.properties contains (note that I specified 443
(standard HTTPS port) for OFBiz URLs):
> port.https=443
> force.https.host=demo.elbiz.enterprise


On 14/12/19 17.20, Jacques Le Roux wrote:

> Le 14/12/2019 à 09:57, Bagas Sanjaya a écrit :
>> But this method only affects landing pages. Subsequent access pages
>> use offset port.
> What do you mean? offsetport parameter changes the port for all URLs
> (HTTP and HTTPS). What do you want exactly?
>> For example, after landing on Webtools landing to login, the URL
>> generated to actual login page now point to port 523.
> We use it for stable and old demos for years and as you can see we have
> not this problem.
>
> Do you use a proxy (HTTPD, Niginx) ? And If so what is you setting? If
> not, did you change something else in url.properties or elsewhere
> related to HTTPS port?
>
> Jacques
>
>
>>
>> On 13/12/19 20.47, Jacques Le Roux wrote:
>>> With Gradle you don't need to worry about that (the doc needs some
>>> update).
>>>
>>> Simply define the ports to use with "--portoffset myPortNumber"
>>>
>>> The official OFBiz demos run on the same VM, you can find the config
>>> used for the stable release (R16) in
>>>
>>> https://github.com/apache/ofbiz-tools/blob/master/demo-backup/stable-manual.sh 
>>>
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>> Le 13/12/2019 à 13:31, Bagas Sanjaya a écrit :
>>>> Hello all,
>>>>
>>>> I'd like to run two OFBiz instances; one for demo and one for
>>>> production. For production instance, I stick with default HTTPS port
>>>> (8443). For demo, however, I had to choose other port in order to
>>>> avoid conflict with production.
>>>>
>>>> On Technical Production Setup Guide [1], port numbers are defined on
>>>> ofbiz-containers.xml file. Unfortunately, I didn't find the
>>>> mentioned file on my instance (as I use git repo instead). How can I
>>>> define different HTTPS port?
>>>>
>>>> Bagas
>>>>
>>>>
>>>> [1]:
>>>> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide 
>>>>
>>>>
>>

--
An old man doll... just what I always wanted! - Clara
Reply | Threaded
Open this post in threaded view
|

Re: Using Different HTTPS Port

Jacques Le Roux
Administrator
Le 14/12/2019 à 13:12, Bagas Sanjaya a écrit :
> I just want to change OFBiz ports, while keeping standard HTTP(s) port (80 & 443) for use by proxy (NGINX).
>
> Regardless, my url.properties contains (note that I specified 443 (standard HTTPS port) for OFBiz URLs):
>> port.https=443
>> force.https.host=demo.elbiz.enterprise

As "explained" in url.properties, keep it "# empty by default see OFBIZ-9206"

Jacques (off for the weekend)

>
>
> On 14/12/19 17.20, Jacques Le Roux wrote:
>> Le 14/12/2019 à 09:57, Bagas Sanjaya a écrit :
>>> But this method only affects landing pages. Subsequent access pages use offset port.
>> What do you mean? offsetport parameter changes the port for all URLs (HTTP and HTTPS). What do you want exactly?
>>> For example, after landing on Webtools landing to login, the URL generated to actual login page now point to port 523.
>> We use it for stable and old demos for years and as you can see we have not this problem.
>>
>> Do you use a proxy (HTTPD, Niginx) ? And If so what is you setting? If not, did you change something else in url.properties or elsewhere related to
>> HTTPS port?
>>
>> Jacques
>>
>>
>>>
>>> On 13/12/19 20.47, Jacques Le Roux wrote:
>>>> With Gradle you don't need to worry about that (the doc needs some update).
>>>>
>>>> Simply define the ports to use with "--portoffset myPortNumber"
>>>>
>>>> The official OFBiz demos run on the same VM, you can find the config used for the stable release (R16) in
>>>>
>>>> https://github.com/apache/ofbiz-tools/blob/master/demo-backup/stable-manual.sh
>>>>
>>>> HTH
>>>>
>>>> Jacques
>>>>
>>>> Le 13/12/2019 à 13:31, Bagas Sanjaya a écrit :
>>>>> Hello all,
>>>>>
>>>>> I'd like to run two OFBiz instances; one for demo and one for production. For production instance, I stick with default HTTPS port (8443). For
>>>>> demo, however, I had to choose other port in order to avoid conflict with production.
>>>>>
>>>>> On Technical Production Setup Guide [1], port numbers are defined on ofbiz-containers.xml file. Unfortunately, I didn't find the mentioned file
>>>>> on my instance (as I use git repo instead). How can I define different HTTPS port?
>>>>>
>>>>> Bagas
>>>>>
>>>>>
>>>>> [1]: https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide
>>>>>
>>>
>