User:BDavis (WMF)/Notes/Thumb.php with Vagrant

= Enable Use of thumb.php in Vagrant VM =

Create a Vagrant "role" that enables thumb.php in the wikimedia instance.

Manual
### thumb.php # auto generate thumbnails if not already on disk RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /w/thumb_handler.php [L,QSA]
 * Add config to LocalSettings.php:
 * Configure 404 handler in /etc/apache2/sites-enabled/devwiki (Manual:Thumb.php):

# auto generate archive thumbnails if not already on disk RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /w/thumb_handler.php [L,QSA] ### end thumb.php