We need to append multiple subdirectories and the content should be serve from some other container where we proxied the request.
<VirtualHost *:80>
<Proxy *>
Order deny,allow
Allow from all
RewriteEngine On
</Proxy>
</VirtualHost>
<VirtualHost *:443>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/apache2/ssl/speedy.marriott.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/speedy.marriott.com.key
<Location "/groups/">
#RewriteRule ^/groups/(.*) /$1 [P,R]
#</Location>
RewriteCond %{REQUEST_URI} ^/groups/index.html
ProxyRequests Off
ProxyPreserveHost On
</Location>
</VirtualHost>
RewriteRule ^(.*)$ /$1 [L]
location /webinterface {
rewrite ^/webinterface(/.*)$ $1 break;
proxy_pass https://XXXXXXXX:XXXXX;
The domain name should be same for all of them.