Sunday, November 6, 2011

Liferay servlet filtering

    The first thing that I have noticed when I started using Liferay was quite a significant amount of filters. Some of them relates to performance, caching, bandwidth, garbage collection of thread locals, security or providing you with various ways of authentication. But you should really know them and turn those that you don't need off. You can do that in portal-ext.properties.

    # Audit Service
    com.liferay.portal.servlet.filters.audit.AuditFilter=false

    # in case you are using one of AutoLogin implementations specified in auto.login.hooks property
    com.liferay.portal.servlet.filters.autologin.AutoLoginFilter=false

    # CAS Liferay Integration
    com.liferay.portal.servlet.filters.sso.cas.CASFilter=false

    # compressing content if client supports it, OFF for dev, ON for production
    com.liferay.portal.servlet.filters.gzip.GZipFilter=false

    # very important, see second paragraph, you better have these activated
    com.liferay.portal.servlet.filters.cache.CacheFilter=true
    com.liferay.portal.servlet.filters.header.HeaderFilter=true

    # monitors portal request performance.
    com.liferay.portal.servlet.filters.monitoring.MonitoringFilter=false

    # Integration with NTLM and ADS
    com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter=false
    com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter=false

    # Liferay OpenSSO Integration
    # Integrating OpenSSO & openAM with Liferay
    com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter=false

    # Access via Sharepoint protocol.
    com.liferay.portal.sharepoint.SharepointFilter=false

No comments: