Skip to content

Commit

Permalink
redirect to HTTP_HOST to support aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Apr 10, 2024
1 parent 067996d commit b081fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ood-portal-generator/templates/ood-portal.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Listen <%= addr_port %>
<%- end -%>

RewriteEngine On
RewriteRule ^(.*) <%= @ssl ? "https" : "http" %>://<%= @proxy_server %>:<%= @port %>$1 [R=301,NE,L]
RewriteRule ^(.*) <%= @ssl ? "https" : "http" %>://%{HTTP_HOST}:<%= @port %>$1 [R=301,NE,L]
</VirtualHost>
<% end -%>

Expand Down

0 comments on commit b081fb0

Please sign in to comment.