diff options
author | Adam Spragg <adam@spra.gg> | 2021-10-04 09:40:04 +0100 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2021-10-04 09:40:04 +0100 |
commit | edf137a7d0a15f5b63f50392aad9927f043bf53c (patch) | |
tree | 0f7ac8467eabae62daf5406f557a2f1c088f7e06 /apache2 |
First working version of emailautoconf
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/.gitignore | 4 | ||||
-rw-r--r-- | apache2/autoconfig.conf.in | 13 | ||||
-rw-r--r-- | apache2/autodiscover.conf.in | 13 | ||||
-rw-r--r-- | apache2/main.conf.in | 18 |
4 files changed, 48 insertions, 0 deletions
diff --git a/apache2/.gitignore b/apache2/.gitignore new file mode 100644 index 0000000..f26d60f --- /dev/null +++ b/apache2/.gitignore @@ -0,0 +1,4 @@ +main.conf + +autoconfig.conf +autodiscover.conf diff --git a/apache2/autoconfig.conf.in b/apache2/autoconfig.conf.in new file mode 100644 index 0000000..68305fa --- /dev/null +++ b/apache2/autoconfig.conf.in @@ -0,0 +1,13 @@ + +# SPDX-License-Identifier: LGPL-3.0-or-later + +<Directory @datarootdir@/emailautoconf> + AllowOverride None + Require all granted +</Directory> + +<Location "/.well-known/autoconfig/mail/config-v1.1.xml"> + Alias "@datarootdir@/emailautoconf/php/thunderbird.php" + SetHandler application/x-httpd-php +</Location> + diff --git a/apache2/autodiscover.conf.in b/apache2/autodiscover.conf.in new file mode 100644 index 0000000..4ce104b --- /dev/null +++ b/apache2/autodiscover.conf.in @@ -0,0 +1,13 @@ + +# SPDX-License-Identifier: LGPL-3.0-or-later + +<Directory @datarootdir@/emailautoconf> + AllowOverride None + Require all granted +</Directory> + +<Location "/autodiscover/autodiscover.xml"> + Alias "@datarootdir@/emailautoconf/php/outlook.php" + SetHandler application/x-httpd-php +</Location> + diff --git a/apache2/main.conf.in b/apache2/main.conf.in new file mode 100644 index 0000000..302ab40 --- /dev/null +++ b/apache2/main.conf.in @@ -0,0 +1,18 @@ + +# SPDX-License-Identifier: LGPL-3.0-or-later + +<Directory @datarootdir@/emailautoconf> + AllowOverride None + Require all granted +</Directory> + +<Location "/.well-known/autoconfig/mail/config-v1.1.xml"> + Alias "@datarootdir@/emailautoconf/php/thunderbird.php" + SetHandler application/x-httpd-php +</Location> + +<Location "/autodiscover/autodiscover.xml"> + Alias "@datarootdir@/emailautoconf/php/outlook.php" + SetHandler application/x-httpd-php +</Location> + |