Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Above <Location "/omk"> add the following line, if you are using other languages please change "en" to your specified language, or add more entries.

Code Block
ProxyPassProxyPassMatch "^(\/(en|es)\/omk\/opEvents\/ws/events"\/.*)$  ws://localhost:8042/en/omk/opEvents/ws/events$1

Restart Apache

Code Block
sudo systemctl restart apache2

...

Settings which you will need to modify from the example

NameValueExampleApache Docs
ServerNameFQDN of the server which users will refer to it bymonit-prod.opmatek.comhttps://httpd.apache.org/docs/2.4/vhosts/name-based.html
SSLCertificateFileServer PEM-encoded X.509 certificate data file or token identifie/etc/ssl/certs/example/cert.pemhttps://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatefile
SSLCertificateKeyFileServer PEM-encoded private key file/etc/ssl/certs/example/privkey.pemhttps://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatekeyfile
SSLCertificateChainFile(Before apache 2.4.8) File of PEM-encoded Server CA Certificates/etc/ssl/certs/example/fullchain.pemhttps://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatekeyfile
Redirect 301HTTPS url of the server which your users refer to byhttps://example.opmantek.com/

Then restart Apache

Code Block
sudo systemctl restart httpd

...