Apache reverse proxy with subfolder
<p>I've a problem that I can't solve.
I wrote my apache configuration like this:</p>

<pre><code>&lt;IfModule mod_ssl.c&gt;
  &lt;VirtualHost *:443&gt;

    ServerAdmin aa@aa.com
    ServerName xx.xx.xx.com

    DocumentRoot /var/www/html

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    SSLEngine on

    SSLCertificateFile /etc/ssl/localcerts/apache.pem
    SSLCertificateKeyFile /etc/ssl/localcerts/apache.key

    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off

    SSLProxyEngine on

    ProxyPass /bdn/ https://test.yy.it/
    ProxyPassReverse /bdn/ https://test.yy.it/

    RequestHeader unset Accept-Encoding

    Substitute "s|https://test.yy.it/|https://xx.xx.xx.com/bdn/|n"
    FilterDeclare NEWPATHS
    FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
    FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
    FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
    FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
    FilterChain NEWPATHS

  &lt;/VirtualHost&gt;
&lt;/IfModule&gt;
</code></pre>

<p>Reverse proxy works, but I loose CSS, javascript, images, ...
Why???
I've read some solution on web:</p>

<ul>
<li><p><a href="http://makandracards.com/makandra/32973-reverse-proxying-web-applications-with-apache-2-4+" rel="nofollow noreferrer">http://makandracards.com/makandra/32973-reverse-proxying-web-applications-with-apache-2-4+</a></p></li>
<li><p><a href="https://serverfault.com/questions/561892/how-to-handle-relative-urls-correctly-with-a-reverse-proxy">https://serverfault.com/questions/561892/how-to-handle-relative-urls-correctly-with-a-reverse-proxy</a></p></li>
</ul>

<p>but none of them are working.
I'm using:</p>

<ul>
<li>S.O. Debian 8</li>
<li>Apache v. 2.4.10</li>
</ul>

<p>Please help me!
Thanks a lot.</p>