Apache 配置

静态站点,文件 server ,开启缓存,压缩

<VirtualHost *:8080>
        DocumentRoot "/var/www/html/project/dev/dist"
        ServerName localhost
        DirectoryIndex /index.html index.html
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
        DeflateCompressionLevel 6
        AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript
        BrotliCompressionQuality 6

        ExpiresActive On
        ExpiresByType text/html "access plus 1 year"
        ExpiresByType text/css "access plus 1 year"
        ExpiresByType text/javascript "access plus 1 year"
</VirtualHost>