Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
bkesting Honored Contributor.
Honored Contributor.
288 views

GWWEB and Apache VirtualHosts

Trying to setup GW Web and am having some issues. My current GW/WebAccess system utilizes VirtualHost directors within Apache in order to get WebAccess to work.

Do I need to make some sort of similar statement in Apache in order to access GW Web?

Example of my current setup:

 

<VirtualHost *:80>
   ServerName "mail.domain.com"
   RewriteEngine On
   RewriteCond %{HTTPS} !=on
   RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
   ServerName "mail.domain.com"
   SSLEngine On
   SSLCertificateFile <path_to_cert_file/cert.crt>
   SSLCertificateKeyFile <path_to_key_file/cert.key>
   SSLCACertificateFile <path_to_CA_file/CA.crt>
</VirtualHost>

 

 

Labels (2)
0 Likes
29 Replies
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

Spoiler
 

Nope. The docker instance has it all. It runs a webserver internally and the configuration is already in the box (read: in-the-docker)

0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

Okay, thanks.

I am having problems getting it to run. I'll try again from the beginning.

 

 

0 Likes
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

Just don't use the download in your software portal. Use the one from the docker site. The manual is clear in how to install.

0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

Yeah, that's what I did the first time around.  I'll try again from the beginning later this afternoon.

0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

So when I run the command:

docker run -it -v /opt/novell/groupwise:/config -e GWADMIN_SERVICE=admin@<my_GW_server_IP>:9710 -e GWSOAP_HOST_DEFAULT=<my_GW_server_IP> mfgroupwise/web-config

I am prompted for a password, and it takes a while to respond, but then I get the following timeout output:

java.net.ConnectException: Connection timed out (Connection timed out)
        at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
        at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
        at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
        at java.base/java.net.Socket.connect(Socket.java:591)
        at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
        at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
        at java.base/sun.net.<a href="http://www.http.HttpClient.openServer(HttpClient.java:474" target="_blank">www.http.HttpClient.openServer(HttpClient.java:474</a>)
        at java.base/sun.net.<a href="http://www.http.HttpClient.openServer(HttpClient.java:569" target="_blank">www.http.HttpClient.openServer(HttpClient.java:569</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsClient.<init>(HttpsClient.java:265" target="_blank">www.protocol.https.HttpsClient.<init>(HttpsClient.java:265</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsClient.New(HttpsClient.java:372" target="_blank">www.protocol.https.HttpsClient.New(HttpsClient.java:372</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191" target="_blank">www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181" target="_blank">www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075" target="_blank">www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177" target="_blank">www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581" target="_blank">www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509" target="_blank">www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245" target="_blank">www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245</a>)
        at com.microfocus.gw.AdminService.sendRequest(AdminService.java:173)
        at com.microfocus.gw.poa.POAMain.getPOAList(POAMain.java:48)
        at com.microfocus.gw.poa.POAMain.process(POAMain.java:78)
        at com.microfocus.gw.ConfigMain.main(ConfigMain.java:59)

but a web.conf file is generated. Is this normal? I haven't been able to get GWWEB working yet

0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

When I run the command below, I get the following output

[quote]docker run -it -v /opt/novell/groupwise:/config -e GWADMIN_SERVICE=admin@<GW_ip_addr>:9710 -e GWSOAP_HOST_DEFAULT=<GW_ip_addr> mfgroupwise/web-config

java.net.ConnectException: Connection timed out (Connection timed out)
        at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
        at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
        at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
        at java.base/java.net.Socket.connect(Socket.java:591)
        at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
        at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
        at java.base/sun.net.<a href="http://www.http.HttpClient.openServer(HttpClient.java:474" target="_blank">www.http.HttpClient.openServer(HttpClient.java:474</a>)
        at java.base/sun.net.<a href="http://www.http.HttpClient.openServer(HttpClient.java:569" target="_blank">www.http.HttpClient.openServer(HttpClient.java:569</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsClient.<init>(HttpsClient.java:265" target="_blank">www.protocol.https.HttpsClient.<init>(HttpsClient.java:265</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsClient.New(HttpsClient.java:372" target="_blank">www.protocol.https.HttpsClient.New(HttpsClient.java:372</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191" target="_blank">www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181" target="_blank">www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075" target="_blank">www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177" target="_blank">www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581" target="_blank">www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581</a>)
        at java.base/sun.net.<a href="http://www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509" target="_blank">www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509</a>)
        at java.base/sun.net.<a href="http://www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245" target="_blank">www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:245</a>)
        at com.microfocus.gw.AdminService.sendRequest(AdminService.java:173)
        at com.microfocus.gw.poa.POAMain.getPOAList(POAMain.java:48)
        at com.microfocus.gw.poa.POAMain.process(POAMain.java:78)
        at com.microfocus.gw.ConfigMain.main(ConfigMain.java:59)

The web.conf file is created, but I've still not had luck getting GW Web to run. Thoughts on the error?

0 Likes
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

Do you have soap ssl enabled on the poa?##- Please type your reply above
this line -##Jan van der Meij+31 6 388 214 93‐-----------Deze email is
digitaal ondertekend door de verzender vanaf een mobiele telefoonThis
email is digitally signed by the sender from a mobile
device------------
0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

I do not have SSL enabled.
0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

Is it as simple as switching the SSL setting for the POA's from "Disabled" to "Required"?

Is there anything else that has to be done (i.e. certificate settings, etc.)?
0 Likes
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

No. It is that simple. Cert is automatically generated. Do not forget to
accept the cert in gms and other connected apps as well##- Please type
your reply above this line -##Jan van der Meij+31 6 388 214
93‐-----------Deze email is digitaal ondertekend door de verzender
vanaf een mobiele telefoonThis email is digitally signed by the sender
from a mobile device------------
0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

So, I have a paid cert for my GMS system and my main GW system. Does that come into play here with that setting change?
0 Likes
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

No. The certificate for your webservices ia not the same as the cert
used for soap communication between systems.##- Please type your reply
above this line -##Jan van der Meij+31 6 388 214 93‐-----------Deze
email is digitaal ondertekend door de verzender vanaf een mobiele
telefoonThis email is digitally signed by the sender from a mobile
device------------
0 Likes
bkesting Honored Contributor.
Honored Contributor.

Re: GWWEB and Apache VirtualHosts

Sorry for so many questions on this.
So as far as GMS is concerned, do you just log into the Mobility Admin Console and select to enable "Secure" and enable "SSL Certificate Verification"?
0 Likes
JvdMeij Respected Contributor.
Respected Contributor.

Re: GWWEB and Apache VirtualHosts

Secure enabledCertificate validation not enabled##- Please type your
reply above this line -##Jan van der Meij+31 6 388 214
93‐-----------Deze email is digitaal ondertekend door de verzender
vanaf een mobiele telefoonThis email is digitally signed by the sender
from a mobile device------------
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.