Working synchronization
This commit is contained in:
parent
db77d8b697
commit
3c04523ca8
6 changed files with 135 additions and 44 deletions
|
|
@ -37,7 +37,7 @@ server {
|
|||
|
||||
if ($team) {
|
||||
root /var/www/fic2014-server/teams/$team$1;
|
||||
rewrite ^/submission-([0-9]+)-([a-zA-Z0-9_]+).html$ /submission.php?team=$team&theme=$1&exercice=$2 last;
|
||||
rewrite ^/([0-9]+-?[a-zA-Z0-9_-]*)/([a-zA-Z0-9_]+)/submission$ /submission.php?team=$team&theme=$1&exercice=$2 last;
|
||||
}
|
||||
if ($team = 0) {
|
||||
root /var/www/fic2014-server/htdocs/;
|
||||
|
|
@ -55,12 +55,14 @@ server {
|
|||
}
|
||||
|
||||
location ~* \favicon.ico$ {
|
||||
root /var/www/fic2014-server/htdocs/;
|
||||
access_log off;
|
||||
expires 1d;
|
||||
add_header Cache-Control public;
|
||||
}
|
||||
|
||||
location ~ ^/(img|js|css|fonts)/ {
|
||||
location ~ ^/(assets|img|js|css|fonts)/ {
|
||||
root /var/www/fic2014-server/htdocs/;
|
||||
access_log off;
|
||||
expires 7d;
|
||||
add_header Cache-Control public;
|
||||
|
|
|
|||
Reference in a new issue