mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-03 01:29:33 +00:00
473 lines
14 KiB
Plaintext
473 lines
14 KiB
Plaintext
# ARCHIVE, based on i3.2xlarge, 64GB RAM and 1.9TB swap
|
|
Define ARCHIVE_IP 172.31.46.178
|
|
Define ARCHIVE_FAILOVER_IP 172.31.15.201
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.15.54
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.15.128
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.5.109
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.41.46
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.5.186
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.41.46
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.8.46
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.12.171
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.15.227
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.12.220
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.11.126
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.2.103
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.40.242
|
|
#Define ARCHIVE_FAILOVER_IP 172.31.46.203
|
|
Define PRODUCTION_ARCHIVE ${ARCHIVE_IP}
|
|
|
|
<Macro ArchiveRewrite>
|
|
Use Rewrite ${PRODUCTION_ARCHIVE} 8888
|
|
</Macro>
|
|
|
|
<Macro Headers>
|
|
SetEnvIf Request_Method POST REQUEST_IS_POST=1
|
|
SetEnvIf Request_URI ^/gateway.* REQUEST_IS_POST=1
|
|
SetEnvIf Request_URI ^/gwt/RegattaOverview.* REQUEST_IS_POST=1
|
|
SetEnvIf Request_URI ^/?$ REQUEST_IS_POST=1
|
|
|
|
Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT" env=REQUEST_IS_POST
|
|
Header set Cache-Control no-cache,no-store,must-revalidate,post-check=0,pre-check=0 env=REQUEST_IS_POST
|
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
AddOutputFilterByType DEFLATE text/html
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
AddOutputFilterByType DEFLATE text/json
|
|
AddOutputFilterByType DEFLATE application/json
|
|
AddOutputFilterByType DEFLATE text/css
|
|
AddOutputFilterByType DEFLATE image/gif
|
|
AddOutputFilterByType DEFLATE image/png
|
|
AddOutputFilterByType DEFLATE image/jpeg
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
AllowEncodedSlashes NoDecode
|
|
</Macro>
|
|
|
|
<Macro Rewrite $IP $PORT>
|
|
ProxyPass "/" "http://$IP:$PORT/" nocanon
|
|
# This is what it was before, requiring AllowEncodedSlashes On instead of NoDecode:
|
|
# RewriteRule ^/(.*)$ http://$IP:$PORT/$1 [P,L]
|
|
ProxyPassReverse / http://$IP:$PORT/
|
|
ProxyPreserveHost On
|
|
</Macro>
|
|
|
|
<Macro Status $HOSTNAME $PATH>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
<Location /$PATH>
|
|
SetHandler server-status
|
|
Order deny,allow
|
|
Allow from all
|
|
</Location>
|
|
<Location "/cgi-bin">
|
|
# Allow cgi-bin access to permit custom status scripts too.
|
|
Allow from all
|
|
</Location>
|
|
CustomLog logs/services_log combined
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Home-ARCHIVE $HOSTNAME>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Home.html" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Home $HOSTNAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html" [L,NE]
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Plain $HOSTNAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Tennis-Plain $HOSTNAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
Use Rewrite $IP $PORT
|
|
CustomLog logs/tennis_log combined
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro HardRedirect $HOSTNAME $TARGETURL>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RedirectMatch /(.*)$ $TARGETURL/
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro LiveCenterWithLanguageSubstitution-ARCHIVE $HOSTNAME $EVENTUUID>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Home.html?locale=de#/event/:eventId=$EVENTUUID" [L,NE]
|
|
RewriteCond %{REQUEST_URI} "^/en$"
|
|
RewriteRule ^(/en)?$ "https://$HOSTNAME/gwt/Home.html?locale=en#/event/:eventId=$EVENTUUID" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro LiveCenterWithLanguageSubstitution $HOSTNAME $EVENTUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html?locale=de#/event/:eventId=$EVENTUUID" [L,NE]
|
|
RewriteCond %{REQUEST_URI} "^/en$"
|
|
RewriteRule ^(/en)?$ "http://$HOSTNAME/gwt/Home.html?locale=en#/event/:eventId=$EVENTUUID" [L,NE]
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro RibDashboard $HOSTNAME $LEADERBOARD_NAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/dashboards/RibDashboard.html?leaderboardName=$LEADERBOARD_NAME&%1" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
|
|
<Macro RegattaOverview-WithLeaderboard-WithLanguage $HOSTNAME $EVENTUUID $LANG $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/RegattaOverview.html?event=$EVENTUUID&locale=$LANG&enableLeaderboard=true" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro RegattaOverview-WithLanguage $HOSTNAME $EVENTUUID $LANG $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/RegattaOverview.html?event=$EVENTUUID&locale=$LANG" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro RegattaOverview-WithLeaderboard $HOSTNAME $EVENTUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/RegattaOverview.html?event=$EVENTUUID&enableLeaderboard=true" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Event $HOSTNAME $EVENTUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html?%1#/event/:eventId=$EVENTUUID" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Series $HOSTNAME $SERIESUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html?%1#/series/events/:seriesId=$SERIESUUID" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro EventRegattaIntro $HOSTNAME $EVENTUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html#/regatta/overview/:eventId=$EVENTUUID" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Event-WithLanguage $HOSTNAME $EVENTUUID $LANG $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html?locale=$LANG#EventPlace:eventId=$EVENTUUID" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Series-ARCHIVE $HOSTNAME $SERIESUUID>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Home.html?%1#/series/events/:leaderboardGroupId=$SERIESUUID" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Event-ARCHIVE $HOSTNAME $EVENTUUID>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Home.html#/event/:eventId=$EVENTUUID" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro RegattaOverview $HOSTNAME $EVENTUUID $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
# The following matches the query string and captures it in group %1 for the RewriteRule to use before the fragment
|
|
RewriteCond %{QUERY_STRING} "^(.*)$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/RegattaOverview.html?event=$EVENTUUID&%1" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Events $HOSTNAME $EVENTNAME $EXTRA $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/events/$EVENTNAME/$EXTRA" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-WithParam $HOSTNAME $GROUPNAME $EXTRA $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&$EXTRA" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-WithLanguage $HOSTNAME $GROUPNAME $LANG $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&showRaceDetails=true&locale=$LANG" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator $HOSTNAME $GROUPNAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&showRaceDetails=true" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Leaderboard $HOSTNAME $GROUPNAME $NAME $IP $PORT>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Leaderboard.html?name=$NAME&leaderboardGroupName=$GROUPNAME&showRaceDetails=true&root=leaderboardGroupPanel" [L,NE]
|
|
|
|
Use Rewrite $IP $PORT
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Leaderboard-WithParam $HOSTNAME $GROUPNAME $NAME $EXTRA>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
|
|
Use Headers
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Leaderboard.html?name=$NAME&leaderboardGroupName=$GROUPNAME&$EXTRA" [L,NE]
|
|
|
|
Use Rewrite-ARCHIVE1
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-ARCHIVE $HOSTNAME $GROUPID>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Spectator.html?leaderboardGroupId=$GROUPID&showRaceDetails=true" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-ARCHIVE-WithParam $HOSTNAME $GROUPNAME $EXTRA>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&$EXTRA" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Events-ARCHIVE $HOSTNAME $EVENTNAME $EXTRA>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "https://$HOSTNAME/events/$EVENTNAME/$EXTRA" [L,NE]
|
|
Use ArchiveRewrite
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-DEV $HOSTNAME $GROUPNAME>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&showRaceDetails=true" [L,NE]
|
|
Use Rewrite 172.31.18.218 8888
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Spectator-DEV-WithParam $HOSTNAME $GROUPNAME $EXTRA>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Spectator.html?leaderboardGroupName=$GROUPNAME&$EXTRA" [L,NE]
|
|
Use Rewrite 172.31.18.218 8888
|
|
</VirtualHost>
|
|
</Macro>
|
|
|
|
<Macro Events-DEV $HOSTNAME $EVENTNAME $EXTRA>
|
|
<VirtualHost *:80>
|
|
ServerName $HOSTNAME
|
|
Use Headers
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_URI} "^(/)?$"
|
|
RewriteRule ^(/)?$ "http://$HOSTNAME/events/$EVENTNAME/$EXTRA" [L,NE]
|
|
Use Rewrite 172.31.18.218 8888
|
|
</VirtualHost>
|
|
</Macro>
|