<Directory <%= @images_dir %>>
  # Wrap rewrite rules in a location block so apache will apply aliases before
  # testing the RewriteCond
  RewriteEngine On
  RewriteBase <%= @images_url %>/

  # Call thumb.php for thumb images not on disk
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/[^/]*([0-9]+)px-.*$ /w/thumb_handler.php [PT,QSA,B]

  # Call thumb.php for thumb archive images not on disk
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/[^/]*([0-9]+)px-.*$ /w/thumb_handler.php [PT,QSA,B]
</Directory>
# vim:sw=2:ts=2:sts=2:ft=apache:

<Directory <%= @images_dir %>>
  # Wrap rewrite rules in a location block so apache will apply aliases before
  # testing the RewriteCond
  RewriteEngine On
  RewriteBase <%= @images_url %>/

  # Call thumb_handler.php for thumb images not on disk
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/[^/]*([0-9]+)px-.*$ /w/thumb_handler.php [PT,QSA,B]

  # Call thumb_handler.php for thumb archive images not on disk
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/[^/]*([0-9]+)px-.*$ /w/thumb_handler.php [PT,QSA,B]
</Directory>
# vim:sw=2:ts=2:sts=2:ft=apache:

Correct thumb.php -> thumb_handler.php comments
Correct thumb.php -> thumb_handler.php comments

Change-Id: I93c097206d8a5fced028f7f2266a3de1149e69ab
