zuul-preview/vhost.conf

14 lines
482 B
Plaintext

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog /dev/stdout
CustomLog /dev/stdout combined
# LogLevel alert rewrite:trace6
RewriteEngine On
RewriteMap preview "prg://usr/local/bin/zuul-preview"
RewriteRule "^/notfound" "-" [F]
RewriteRule "^/?(.*)$" "${preview:%{ENV:ZUUL_API_URL} %{HTTP_HOST}|http://localhost/notfound}/$1" [P]
SSLProxyEngine on
</VirtualHost>