How to disable page speed at a specific url?

I am currently using page speed on my new website, very happy about that. but I just realized that my / phpmyadmin is now empty.

I know this because of pagepeed, because when do I go to / phpmyadmin /? PageSpeed ​​= off; he is working again.

So, the idea is to disable page speed only with / phpmyadmin and / phpmyadmin / * link / phpmyadmin is executed with a symbolic link.

I am using apache2.

Here is what I have in my .conf vhost file

<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> 

any community of ideas?

Many thanks!

+7
google-pagespeed pagespeed
source share
1 answer

You can use regular apache location blocks:

 <Location "/phpmyadmin"> ModPagespeed off </Location> 

Or a special mod_pagespeed directive:

 ModPagespeedDisallow "*/phpmyadmin/*" 
+9
source share

All Articles