...
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
Name | Value | Example | Apache Docs |
---|---|---|---|
ServerName | FQDN of the server which users will refer to it by | monit-prod.opmatek.com | https://httpd.apache.org/docs/2.4/vhosts/name-based.html |
SSLCertificateFile | Server PEM-encoded X.509 certificate data file or token identifie | /etc/ssl/certs/example/cert.pem | https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatefile |
SSLCertificateKeyFile | Server PEM-encoded private key file | /etc/ssl/certs/example/privkey.pem | https://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.pem | https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatekeyfile |
Redirect 301 | HTTPS url of the server which your users refer to by | https://example.opmantek.com/ |
Then restart Apache
Code Block |
---|
sudo systemctl restart httpd |
...