Skip to content

Commit

Permalink
Fix issue with hyphen in site name on apache
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Derschatta authored and derschatta committed Nov 17, 2024
1 parent 0cf2cf0 commit 669b6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache/config/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RewriteCond %{HTTP_HOST} totara(\d)(\d)\.debug(:[0-9]+)?$
RewriteRule \.php - [H=proxy:fcgi://php-%1.%2-debug:9000]

# Handle if the site name is specified in the host, e.g. sitename.totara73
RewriteCond %{HTTP_HOST} ^(\w+)\.totara
RewriteCond %{HTTP_HOST} ^(.+)\.totara
RewriteRule ^(.*)$ - [E=SITENAME:%1]

# If the server directory exists, then rewrite it to use it
Expand Down

0 comments on commit 669b6ac

Please sign in to comment.