-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.conf
37 lines (34 loc) · 1.27 KB
/
apache.conf
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
<IfModule mod_ssl.c>
<VirtualHost *:443>
DocumentRoot /var/www/kagamino_blog
ServerName blog.kagamino.dev
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<Directory /var/www/kagamino_blog>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/blog.kagamino.dev/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/blog.kagamino.dev/privkey.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:80>
DocumentRoot /var/www/kagamino_blog
ServerName blog.kagamino.dev
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<Directory /var/www/kagamino_blog>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =blog.kagamino.dev
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
</IfModule>