Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMS Dispatcher] A new flush vhost to invalidate author cache #1038

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Collect any enviromental variables that are set in /etc/sysconfig/httpd
# Collect the dispatchers number
PassEnv DISP_ID
# A vhost to flush cache on author dispatcher. Use this vhost in conjunction with adding a Host Header (authorflush) to your AEM flush agent configurations so they fall into this host
# This is a deliberate flush target that doesn't conflict with customers configurations of the dispatcher
<VirtualHost *:80>
ServerName "dispauthorflush"
ServerAlias authorflush

DocumentRoot ${AUTHOR_DOCROOT}
# Add header breadcrumbs for help in troubleshooting
<IfModule mod_headers.c>
Header always add X-Dispatcher ${DISP_ID}
Header always add X-Vhost "authorflush"
</IfModule>
<Directory "${AUTHOR_DOCROOT}">
<IfModule disp_apache2.c>
SetHandler dispatcher-handler
</IfModule>
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Put hostnames that would be honored for authors blob matching works.
"author-*"
"authorflush"
"${AUTHOR_DEFAULT_HOSTNAME}"