Hi,
This is too late, but might be usefull for others.
If you have already set up an xwiki container with an Apache server, i need your help.
This is the config I use.
<VirtualHost *:80>
ServerAdmin contact@mydomain.com
DocumentRoot "/path/to/apache/html/files"
ServerName wiki.mydomain.com
# Redirect the example.com to the www.example.com
# See https://serverfault.com/questions/120488/redirect-url-within-apache-virtualhost#120507
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule ^/(.*)$ http://www.mydomain.com/$1 [L,R=301,E=nocache:1]
## Set the response header if the "nocache" environment variable is set
## in the RewriteRule above.
Header always set Cache-Control "no-store, no-cache, must-revalidate" env=nocache
## Set Expires too ...
Header always set Expires "Thu, 01 Jan 1970 00:00:00 GMT" env=nocache
ErrorLog ${APACHE_LOG_DIR}/wiki_example_com-error.log
CustomLog ${APACHE_LOG_DIR}/wiki_example_com-access.log combined
# definit les fichiers index, dans l'ordre de preference.
DirectoryIndex index.php index.php3 index.html index.htm
ErrorDocument 401 /errorpages/401_Authorization_Required.html
ErrorDocument 403 /errorpages/403_Forbidden.html
ErrorDocument 404 /errorpages/404_Not_Found.html
# INTERDIT LA NAVIGATION DANS LES REPERTOIRES
Options -Indexes
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Require all granted
</Proxy>
# See : https://stackoverflow.com/a/65430414
# This avoid relying on Regular Expressions.
# ProxyPass can take "!" as a second parameter, in which case it doesn't proxy the matching URL.
# This is for the Cerbot process for SSL Certificates renewal.
ProxyPass /.well-known !
ProxyPass /htdocs_static !
# This domain name is set in the /etc/hosts file of the server : myserver.mylocalnetwork1.lan
ProxyPass /xwiki http://myserver.mylocalnetwork1.lan:8080/xwiki
ProxyPassReverse /xwiki http://myserver.mylocalnetwork1.lan:8080/xwiki
</IfModule>
</VirtualHost>
I use another VirtualHost for the www.mydomain.com domain (for static files, or Nextcloud, or PHP apps).
This config allow to have the XWiki pages served, and also some static pages served, by Apache Httpd, on the same domain (wiki.mydomain.com).
As an example :
http://wiki.mydomain.com/htdocs_static/index.html
Also, this allow to have the creation and renew of the Let’s Encrypt SSL Certificates, through the Cerbot process.
Hope it helps,