mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 07:56:38 +00:00
added series macro for apache 000-macro.conf
This commit is contained in:
@@ -242,6 +242,41 @@
|
||||
</VirtualHost>
|
||||
</Macro>
|
||||
|
||||
<Macro Series $HOSTNAME $EVENTUUID $IP $PORT>
|
||||
<VirtualHost *:80>
|
||||
ServerName $HOSTNAME
|
||||
|
||||
Use Headers
|
||||
|
||||
RewriteEngine on
|
||||
|
||||
RewriteCond %{REQUEST_URI} "^(/)?$"
|
||||
RewriteRule ^(/)?$ "http://$HOSTNAME/gwt/Home.html?%{QUERY_STRING}#/series/:seriesId=$EVENTUUID" [L,NE]
|
||||
|
||||
Use Rewrite $IP $PORT
|
||||
</VirtualHost>
|
||||
</Macro>
|
||||
|
||||
<Macro Series-SSL $HOSTNAME $EVENTUUID $IP $PORT>
|
||||
<VirtualHost *:80>
|
||||
ServerName $HOSTNAME
|
||||
RedirectPermanent / https://$HOSTNAME/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerName $HOSTNAME
|
||||
Use SSL
|
||||
Use Headers
|
||||
|
||||
RewriteEngine on
|
||||
|
||||
RewriteCond %{REQUEST_URI} "^(/)?$"
|
||||
RewriteRule ^(/)?$ "https://$HOSTNAME/gwt/Home.html?%{QUERY_STRING}#/series/:seriesId=$EVENTUUID" [L,NE]
|
||||
|
||||
Use Rewrite $IP $PORT
|
||||
</VirtualHost>
|
||||
</Macro>
|
||||
|
||||
<Macro EventRegattaIntro $HOSTNAME $EVENTUUID $IP $PORT>
|
||||
<VirtualHost *:80>
|
||||
ServerName $HOSTNAME
|
||||
|
||||
Reference in New Issue
Block a user