The 3DDashboard needs to be able to communicate with the OnePart back-end. As this involves secured and cross-domain communications, use a
reverse proxy to address these requirements and, in addition, mask the actual
location of OnePart to end users.
The reverse proxy must be accessible by the 3DDashboard through an HTTPS endpoint. This means the 3DDashboard must trust the SSL certificate used by the reverse proxy.
For complete interoperability, OnePart and the 3DDashboard must be both on the same virtual host.
Before you begin:
This procedure shows an example with the Apache httpd reverse proxy and uses the
following variables:
-
ONEPART_INTERNAL_URL: the URL, including the port and
. For example,
/onepart
http://onepart.my-company.com:10000/onepart
-
: the URL visible externally, including port, as defined by the reverse
proxy configuration. For example,
https://experience.my-domain.com:444/onepart
Note:
When you configure OnePart to be accessible from the
3DEXPERIENCE, you can still access stand-alone OnePart in a browser at:
<ONEPART_URL>
/page/index (make sure to include /index in
the path).
-
Open the reverse proxy configuration located at, for example,
/usr/local/reverseproxy/conf/httpd.conf, accessible by
root.
-
Add the lines shown below to the
<VirtualHost> tag that
also contains the 3DDashboard reverse proxy configuration. Make sure to replace
<ONEPART_INTERNAL_URL>
with the actual
value.
# OnePart
ProxyPass /onepart <ONEPART_INTERNAL_URL>
ProxyPassReverse /onepart <ONEPART_INTERNAL_URL>
Example of the full virtual host configuration for a Windows
installation (the
3DDashboard information comes from
Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Platform Installation | Installing Services One-by-One | 3DDashboard | 3DDashboard | Configuring the Reverse Proxy):
Listen 444
<VirtualHost *:444>
SSLEngine on
ProxyPreserveHost Off
ServerAlias myserver
# 3DDashboard:
Include <3DDashboardInstallPath>\win_b64\templates\3DDashboard_httpd_fragment.conf
# OnePart
RewriteEngine On
RewriteRule "^/onepart/onepart-widget$" "http://<OPV2 HOSTNAME>:<OPV2 PORT>/onepart/uwa/widget/application?embeddedProfileId=default" [P]
RewriteRule "^/onepart/application(.*)$" "http://<OPV2 HOSTNAME>:<OPV2 PORT>/onepart/page/application$1" [P]
RewriteRule "^/onepart/libraries(.*)$" "http://<OPV2 HOSTNAME>:<OPV2 PORT>/onepart/page/libraries$1" [P]
ProxyPass /onepart <ONEPART_INTERNAL_URL>
ProxyPassReverse /onepart <ONEPART_INTERNAL_URL>
# Other services that may have been configured
RequestHeader set x-forwarded-port "443"
</VirtualHost>
-
Restart the reverse proxy server (still root), using the command:
/usr/local/reverseproxy/bin/httpd -k restart