A Demo project for MSFT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
679 B

<VirtualHost *:80>
ServerName unhealthypublish
ServerAlias ${PUBLISH_DEFAULT_HOSTNAME}
DocumentRoot /mnt/var/www/default
<Directory "/mnt/var/www/default">
Options FollowSymLinks
AllowOverride None
Require all granted
# Insert filter
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
</Directory>
<IfModule mod_headers.c>
Header always add X-Dispatcher ${DISP_ID}
Header always add X-Vhost "unhealthy-publish"
</IfModule>
<IfModule mod_rewrite.c>
ReWriteEngine on
RewriteCond %{REQUEST_URI} !^/error.html$
RewriteRule ^/* /error.html [R=301,L,NC]
</IfModule>
</VirtualHost>