Env: Ubuntu 18, Apache2, XWiki 12.1 on JETTY 9.4
I have xwiki on https://wiki.company.com:8443/xwiki/
and I would like to hide port 8443
and optionaly /xwiki/
.
I have tried with virtualhost:
<VirtualHost *:443>
ProxyPreserveHost On
SSLProxyEngine On
SSLProxyCheckPeerCN Off
SSLCertificateFile /etc/ssl/certs/company.crt
SSLCertificateKeyFile /etc/ssl/private/comapny.key
ProxyPass / https://wiki.company.com:8443/xwiki/
ProxyPassReverse / https://wiki.company.com:8443/xwiki/
</VirtualHost>
This similar solution works for many projects but not for xwiki. The problem is that in this solution xwiki has problem with loading some files because it still try to load files from
https://wiki.company.com/xwiki/webjars/wiki%3Axwiki/drawer/2.4.0/css/drawer.min.css
instead of
https://wiki.hl-display.com/webjars/wiki%3Axwiki/drawer/2.4.0/css/drawer.min.css
So maybe is there any other solution like removing xwiki
ProxyPass / https://wiki.company.com:8443/
ProxyPassReverse / https://wiki.company.com:8443/
and redirect user when enter in browser exact https://wiki.company.com
to https://wiki.company.com/xwiki/
Or mod rewrite to replace string
https://wiki.company.com/xwiki/hhh/jjj/aaa
To
https://wiki.company.com/hhh/jjj/aaa
?
I have try a lot of settings but without any success :(