Sie*_*tse 8

这需要deflate模块,所以启用它。在 Ubuntu(这是我正在使用的)下,该命令是a2enmod deflate.

然后,SetOutputFilter在您的ProxyDirectory指令上使用:

<ProxyMatch "^http://localhost:8080/($|app/)">
    Order allow,deny
    Allow from all
    SetOutputFilter Deflate
</ProxyMatch>
Run Code Online (Sandbox Code Playgroud)

或者:

<Directory /var/www>
    Order allow,deny
    Allow from all
    SetOutputFilter Deflate
</Directory>
Run Code Online (Sandbox Code Playgroud)