lambda-service-frontend.conf.j2 2.15 KB
Newer Older
1
Listen 4200
2
Listen 4201
3
4

<VirtualHost *:4200>
5
6
7
8
9
10
11
        ServerName {{ ansible_hostname }}.vm.okeanos.grnet.gr
        RewriteEngine On
        RewriteCond %{HTTPS} !=on
        RewriteRule ^/?(.*) https://%{SERVER_NAME}:4201/$1 [R,L]
</VirtualHost>

<VirtualHost *:4201>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

        <Directory /var/www/>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
27
        ServerName {{ ansible_hostname }}.vm.okeanos.grnet.gr:4200
28
29
30
31

        #ServerAdmin webmaster@localhost
        DocumentRoot {{ repository_download_path }}/okeanos-LoD/webapp/frontend/dist

32
33
34
35
        SSLEngine ON
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        #limit request body size to 500MB
        LimitRequestBody 524288000

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>