
AMFSwitcher
The architecture of the AMFSwitcher.pm:


Configuration 1:
Prerequisite: AMFWURFLFilter or AMFWURFLFIlterMemcached must be configured
You can use the filter to redirect to other part if it came from:
web browser mobile browser transcoder
Open the file httpd.conf of your webserver. And configure this few parameters*:
PerlSetEnv FullBrowserUrl http://www.fullbrowsersite.com
PerlSetEnv MobileVersionUrl http://www.mobilesite.com
PerlSetEnv RedirectTranscoderUrl http://www.transcodersite.com**
PerlSetEnv AMFMobileHome server_root/MobileFilter
PerlModule Apache2::AMFWURFLFilter PerlTransHandler +Apache2::AMFWURFLFilter (or Apache2::AMFWURFLFilterMemcached) PerlTransHandler +Apache2::AMFSwitcher
*FullBrowserUrl, MobileVersionUrl, RedirectTranscoder are optional, but minumum one of them must be set **if the parameter “RedirectTranscoder” is ommitted the transcoders are considered as mobile devices.
Configuration 2:
You can use the filter to redirect to other part if it came from:
web browser mobile browser transcoder
Open the file httpd.conf of your webserver. And configure this few parameters*:
PerlSetEnv FullBrowserUrl /web_dedicated_site
PerlSetEnv MobileVersion /mobile_dedicated_site
PerlSetEnv RedirectTranscoderUrl /transcoder_dedicates_site
PerlSetEnv AMFMobileHome server_root/MobileFilter
PerlTransHandler +Apache2::AMFWURFLFilter PerlTransHandler +Apache2::AMFSwitcher
If for example you change the FullBrowserUrl parameter with value “/”, you defined that FullBrowser devices can navigate to all site.
*FullBrowserUrl, MobileVersionUrl, RedirectTranscoder are optional, but minumum one of them must be set
Configuration 3
Open the file httpd.conf of your webserver. And configure this few parameters*:
PerlSetEnv AMFMobileHome server_root/MobileFilter PerlSetEnv FullBrowserUrl /web
PerlSetEnv MobileVersion /mobile PerlSetEnv RedirectTranscoderUrl /transcoder_dedicates_site
PerlSetEnv WildCardRedirect true
PerlTransHandler +Apache2::AMFWURFLFilter PerlTransHandler +Apache2::AMFSwitcher
For example if PC browser try to access to:
http://www.site.org/mobile/hello.html?go=12
the AMF Switcher redirect the browser to this url:
http://www.site.org/web/hello.html?go=12
Configuration 4
Open the file httpd.conf of your webserver. And configure this few parameters*:
PerlSetEnv AMFMobileHome server_root/MobileFilter PerlSetEnv FullBrowserUrl /web_dedicated_site
PerlSetEnv MobileVersion /mobile_dedicated_site
PerlSetEnv RedirectTranscoderUrl /transcoder_dedicates_site
PerlSetEnv WildCardRedirect true #or false
PerlSetEnv AMFSwitcherExclude /images/,php_test.php,.png
PerlTransHandler +Apache2::AMFWURFLFilter PerlTransHandler +Apache2::AMFSwitcher
This directive excludes the AMFSwitcher to be active for the path or file, or extentions. For example:
/images/ or php_test.php the images is not catched by AMFSwitcher
|