CONFIGURATION_APACHE 1.1 KB
Newer Older
LockhomeDevelopper's avatar
Update  
LockhomeDevelopper committed
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
<Directory /home/lockhome>
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
    Allow from all
</Directory>

<VirtualHost lockhome.nrocher.fr:80>
        ServerName lockhome.nrocher.fr

        ServerAdmin nathan.rocher@etu.univ-nantes.fr
        DocumentRoot /home/lockhome/lockhome

        RewriteEngine on
        RewriteCond %{SERVER_NAME} =lockhome.nrocher.fr
        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

<IfModule mod_ssl.c>
        <VirtualHost lockhome.nrocher.fr:443>
                ServerName lockhome.nrocher.fr

                ServerAdmin nathan.rocher@etu.univ-nantes.fr
                DocumentRoot /home/lockhome/lockhome

                ProxyRequests on
                ProxyPassMatch "^/camera/stream/(.*)" "http://$1/"

                SSLCertificateFile /etc/letsencrypt/live/phpmyadmin.nrocher.fr/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/phpmyadmin.nrocher.fr/privkey.pem
                Include /etc/letsencrypt/options-ssl-apache.conf
        </VirtualHost>
</IfModule>