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

Dynamically generate X-VHost header #93

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
6 changes: 6 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="2.0.6" date="not released">
<action type="update" dev="twolfart">
twolfart marked this conversation as resolved.
Show resolved Hide resolved
Dynamically generate X-Vhost value.
</action>
</release>

<release version="2.0.4" date="2024-01-26">
<action type="update" dev="sseifert" issue="91">
Role aem-dispatcher-cloud: Sync with default dispatcher configuration from Adobe AEM project archetype 40 to 47.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ CustomLog logs/vhost_{{tenant}}_access.log {{httpd.logging.accessLogFormat}}
{{~#block "generalSettings"}}
# Use a document root that matches the one in conf.dispatcher.d/default.farm
DocumentRoot "${PUBLISH_DOCROOT}"
# Add header breadcrumbs for help in troubleshooting
<IfModule mod_headers.c>
Header add X-Vhost "publish"
# Add header breadcrumbs for help in troubleshooting
Header add X-Vhost "{{httpd.serverName}}"
twolfart marked this conversation as resolved.
Show resolved Hide resolved
# Webserver in AEM cloud service is always terminated with SSL
RequestHeader set X-Forwarded-SSL "on"
</IfModule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ ServerAlias {{this}}
DocumentRoot "${DOCROOT}"
# URI dereferencing algorithm is applied at Sling's level, do not decode parameters here
AllowEncodedSlashes NoDecode
# Add header breadcrumbs for help in troubleshooting
<IfModule mod_headers.c>
Header add X-Vhost "publish"
# Add header breadcrumbs for help in troubleshooting
{{#httpdCloudManagerConditional}}
Header add X-Vhost "{{httpd.serverName}}"
tobias-richter marked this conversation as resolved.
Show resolved Hide resolved
{{/httpdCloudManagerConditional}}
# Webserver in AEM cloud service is always terminated with SSL
RequestHeader set X-Forwarded-SSL "on"
</IfModule>
Expand Down