Public | Automated Build

Last pushed: 3 years ago
Short Description
Apache HTTP Server compiled within Apache Mobile Filter (AMF)
Full Description

What is Apache Mobile Filter (AMF)?

Apache Mobile Filter (created by Idel Fuschini) is the easiest and fastest way to detect mobile devices.
AMF is a suite of tools that allow access to a Device Repository (such as WURFL, DetectRight, 51Degrees or others) directly from Apache: now you can detect devices no matter what language your website uses.

How to use this image.


  • Create a configuration file amf.conf within the content (adjust to fit your needs):
PerlSetEnv AMFMobileHome /data/amf
PerlSetEnv CapabilityList brand_name,model_name,max_image_width
PerlSetEnv AMFProductionMode true
PerlSetEnv CacheDirectoryStore /data/cache
PerlSetEnv ResizeImageDirectory /data/cache
PerlSetEnv ServerMemCached memcached:11211
  • Mount this file as a volume into /etc/httpd/conf.d/amf.conf
  • Create a vhost for your application, use this as example:
<VirtualHost *:80>
    DocumentRoot /data/app
    Alias /images /data/images

    PerlTransHandler +Apache2::AMFWURFLFilterMemcached

    <Location /images/*>
        Require all granted

        SetHandler modperl
        PerlOutputFilterHandler Apache2::AMFImageRendering

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
  • Mount this vhost as a volume into /etc/httpd/conf.d/revive.conf


docker run -it \
    -v $PWD/amf.conf:/etc/httpd/conf.d/amf.conf \
    -v $PWD/my-app_vhost.conf:/etc/httpd/conf.d/my-app.conf \
Docker Pull Command
Source Repository