Add example files for autodiscover service.
This commit is contained in:
41
DOC/README.vhost.autodiscover
Normal file
41
DOC/README.vhost.autodiscover
Normal file
@ -0,0 +1,41 @@
|
||||
# -- autodiscover.<DOMAIN.TLD> -- #
|
||||
|
||||
<VirtualHost 83.223.86.98:443 [2a01:30:0:13:211:84ff:feb7:7f9c]:443>
|
||||
|
||||
ServerAdmin admin@<DOMAIN.TLD>
|
||||
|
||||
ServerName autodiscover.<DOMAIN.TLD>
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^.*$ - [NC,L]
|
||||
RewriteRule ^.*$ /autodiscover.php [NC,L]
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/tmp/php-7.3-fpm.www.sock|fcgi://127.0.0.1"
|
||||
</FilesMatch>
|
||||
|
||||
<IfModule dir_module>
|
||||
DirectoryIndex index.php index.html
|
||||
</IfModule>
|
||||
|
||||
DocumentRoot "/var/www/autodiscover.<DOMAIN.TLD>/htdocs"
|
||||
<Directory "/var/www/autodiscover.<DOMAIN.TLD>/htdocs">
|
||||
Options +FollowSymLinks -Indexes
|
||||
AllowOverride Options Indexes Limit FileInfo AuthConfig
|
||||
</Directory>
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /var/lib/dehydrated/certs/autodiscover.<DOMAIN.TLD>/fullchain.pem
|
||||
SSLCertificateKeyFile /var/lib/dehydrated/certs/autodiscover.<DOMAIN.TLD>/privkey.pem
|
||||
|
||||
CustomLog /var/log/apache2/ip_requests.log base_requests
|
||||
|
||||
CustomLog /var/www/autodiscover.<DOMAIN.TLD>/logs/autodiscover.<DOMAIN.TLD>.log combined
|
||||
ErrorLog /var/www/autodiscover.<DOMAIN.TLD>/logs/autodiscover.<DOMAIN.TLD>.error
|
||||
|
||||
</VirtualHost>
|
||||
|
Reference in New Issue
Block a user