我目前正在新网站上使用网页速度,非常高兴。 但我刚刚意识到我的/ phpmyadmin现在是空白的。
我知道这是因为pagespeed,因为当我去/ phpmyadmin /?PageSpeed = off;它又有效了。
所以我的想法是只在/ phpmyadmin和/ phpmyadmin / *上禁用pagespeed / phpmyadmin链接使用符号链接。
我正在使用apache2。
以下是我在vhost .conf文件中的内容
<Directory /var/www/mywebsite/>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
#ModPagespeedEnableFilters lazyload_images,defer_javascript,insert_dns_prefetch,collapse_whitespace
ModPagespeedEnableFilters lazyload_images,combine_javascript,defer_javascript,combine_css
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
FileETag none
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2500000 seconds"
ExpiresByType image/jpeg "access plus 2500000 seconds"
ExpiresByType image/png "access plus 2500000 seconds"
ExpiresByType image/gif "access plus 2500000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2500000 seconds"
ExpiresByType text/css "access plus 600000 seconds"
ExpiresByType text/javascript "access plus 200000 seconds"
ExpiresByType application/javascript "access plus 200000 seconds"
ExpiresByType application/x-javascript "access plus 200000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
Options -Indexes
AllowOverride All
</Directory>
任何想法社区?
非常感谢!!
答案 0 :(得分:12)
您可以使用普通的apache位置块:
<Location "/phpmyadmin">
ModPagespeed off
</Location>
或mod_pagespeed特定指令:
ModPagespeedDisallow "*/phpmyadmin/*"