diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-09-02 01:02:31 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-09-02 01:02:31 +0200 |
commit | 2e3a53d879ef17f2e4afcce9e6b7f121ab25c571 (patch) | |
tree | 6f75bcb2af9dcc5c975ffa0d3438023ad8abf8ca /roles/apache/files | |
parent | a024ad57e94976f7541bdd352e2d0a364c2aa5fb (diff) | |
download | ansible_collection-2e3a53d879ef17f2e4afcce9e6b7f121ab25c571.tar.gz |
add apache role
Diffstat (limited to 'roles/apache/files')
-rw-r--r-- | roles/apache/files/000-default-ssl.conf | 11 | ||||
-rw-r--r-- | roles/apache/files/000-default.conf | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/roles/apache/files/000-default-ssl.conf b/roles/apache/files/000-default-ssl.conf new file mode 100644 index 0000000..dcf8b8b --- /dev/null +++ b/roles/apache/files/000-default-ssl.conf @@ -0,0 +1,11 @@ +<IfModule mod_ssl.c> + <VirtualHost _default_:443> + ServerAdmin webmaster@localhost + + Redirect 404 / + + Include ssl.conf + </VirtualHost> +</IfModule> + +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet diff --git a/roles/apache/files/000-default.conf b/roles/apache/files/000-default.conf new file mode 100644 index 0000000..922eb96 --- /dev/null +++ b/roles/apache/files/000-default.conf @@ -0,0 +1,9 @@ +<VirtualHost *:80> + ServerAdmin webmaster@localhost + + RewriteEngine On + RewriteCond %{HTTPS} !=on + RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] +</VirtualHost> + +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |