Skip to content

Commit

Permalink
Redirect the default service URL host to the CMS url as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
q0rban committed Feb 24, 2021
1 parent 3751e0b commit 54790e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .tugboat/proxy-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LoadModule rewrite_module modules/mod_rewrite.so
# subdomain.
Include /var/lib/tugboat/qa_subdomain.conf
# Rewrite for CMS.
RewriteCond %{HTTP_HOST} ^${TUGBOAT_DEFAULT_SERVICE_URL_HOST} [NC,OR]
RewriteCond %{HTTP_HOST} ^cms-${TUGBOAT_DEFAULT_SERVICE_TOKEN}.${TUGBOAT_SERVICE_CONFIG_DOMAIN} [NC]
RewriteRule ^(.*)$ https://cms-%{ENV:QA_SUBDOMAIN}-%{ENV:TUGBOAT_DEFAULT_SERVICE_TOKEN}.%{ENV:TUGBOAT_SERVICE_CONFIG_DOMAIN}$1 [L,R=302]
# Rewrite for Web.
Expand Down

0 comments on commit 54790e4

Please sign in to comment.