# Collect any enviromental variables that are set in /etc/sysconfig/httpd # Collect the dispatchers number PassEnv DISP_ID ServerName publish # Put names of which domains are used for your published site/content here ServerAlias ${PUBLISH_DEFAULT_HOSTNAME} # Use a doc root that matches what's in the /etc/httpd/conf/publish-farm.any DocumentRoot ${PUBLISH_DOCROOT} # Add header breadcrumbs for help in troubleshooting Header always add X-Dispatcher ${DISP_ID} Header always add X-Vhost "publish" Header merge X-Frame-Options SAMEORIGIN "expr=%{resp:X-Frame-Options}!='SAMEORIGIN'" Header merge X-Content-Type-Options nosniff "expr=%{resp:X-Content-Type-Options}!='nosniff'" # Update /etc/sysconfig/httpd with setting the PUBLISH_ALLOWLIST_ENABLED from 0 or 1 to enable or disable ip restriction rules Include conf.d/allowlists/*_allowlist.rules # Some items cache with the wrong mime type # Use this option to use the name to auto-detect mime types when cached improperly ModMimeUsePathInfo On # Use this option to avoid cache poisioning # Sling will return /content/image.jpg as well as /content/image.jpg/ but apache can't search /content/image.jpg/ as a file # Apache will treat that like a directory. This assures the last slash is never stored in cache DirectorySlash Off # Enable the dispatcher file handler for apache to fetch files from AEM SetHandler dispatcher-handler Options FollowSymLinks AllowOverride None Require all granted # Insert filter SetOutputFilter DEFLATE # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png)$ no-gzip dont-vary # Enabled to allow rewrites to take affect and not be ignored by the dispatcher module DispatcherUseProcessedURL 1 # Default setting to allow all errors to come from the aem instance DispatcherPassError 0 ReWriteEngine on LogLevel warn rewrite:info # Global rewrite include Include conf.d/rewrites/base_rewrite.rules Include conf.d/rewrites/mcaps-site_rewrite.rules # Update /etc/sysconfig/httpd with setting the PUBLISH_FORCE_SSL from 0 or 1 to enable or disable enforcing SSL Include conf.d/rewrites/xforwarded_forcessl_rewrite.rules SSLProxyEngine on Include /etc/httpd/conf.d/proxy/*.proxy