Dodan role za apache
This commit is contained in:
parent
d5b6fe1d92
commit
b324daff08
6 changed files with 675 additions and 0 deletions
11
roles/apache/files/default.conf
Normal file
11
roles/apache/files/default.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# handle .well-known and HTTPS redirect for all domains
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
location /.well-known/acme-challenge/ {
|
||||
alias /srv/http/.well-known/acme-challenge/;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
3
roles/apache/files/reload-apache.sh
Normal file
3
roles/apache/files/reload-apache.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
service apache reload
|
Loading…
Add table
Add a link
Reference in a new issue