Gitlab CSE Unil

staging.conf 1.96 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<IfModule wsgi_module>

## ------------
## Static paths
## ------------
    Alias /static/ "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/static/"
    
    <Directory "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/static">
        Options +FollowSymLinks -Indexes
        Order deny,allow
        Allow from all
        <IfModule expires_module>
            ExpiresActive On
            ExpiresDefault "access plus 10 minutes"
            <IfModule headers_module>
                Header append Cache-Control "public"
            </IfModule>
        </IfModule>
    </Directory>

# ----------
# Media path
# ----------
    Alias /media/ "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/media/"
    <Directory "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/media">
        Options +FollowSymLinks -Indexes
        Order deny,allow
        Allow from all
    </Directory>

# ---------------
# Protected Media
# ---------------
    <Directory "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/media/ao_images/">
        Order allow,deny
        Deny from all
    
        # --------------
        # XsendFile Conf
        # --------------
        <IfModule xsendfile_module>
            XSendFile On
            XSendFilePath "/Users/jfurrer/JOB/___RISET/PROJECTS/Misc/AnnotationDImage/workspace/adim.django/adim_project/media"
        </IfModule>
    
    </Directory>

# ---------------
# Shibboleth Conf
# ---------------
    <IfModule mod_shib>
        <Location //shibauth/>
            #Order allow,deny
            #Allow from all
            AuthType shibboleth
            ShibRequireSession On
            ShibRedirectToSSL 443
            require uniqueID impossiblevaluehere@nowhere.org

            require valid-user
        </Location>
    </IfModule>

</IfModule>