summarylogtreecommitdiffstats
path: root/apache.example.conf
blob: 4aa740e172e5dbb18a232a66575511842ca16819 (plain)
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
<VirtualHost *:80>
    ServerName ssp.example.com
    DocumentRoot /usr/share/webapps/self-service-password
 
    LogLevel warn
    ErrorLog /var/log/httpd/ssp_error.log
    CustomLog /var/log/httpd/ssp_access.log combined

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

<VirtualHost *:443>
    ServerName ssp.example.com
    DocumentRoot /usr/share/webapps/self-service-password
 
    AddDefaultCharset UTF-8

    <Directory /usr/share/webapps/self-service-password/>
        AllowOverride None
	Require all granted
        DirectoryIndex index.php
    </Directory>
 
    <Directory /usr/share/webapps/self-service-password/scripts/>
        AllowOverride None
        Require all denied
    </Directory>
 
    LogLevel warn
    ErrorLog /var/log/httpd/ssp_error.log
    CustomLog /var/log/httpd/ssp_access.log combined

    SSLCertificateFile /etc/letsencrypt/live/ssp.example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/ssp.example.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>