26d88125ef
Enable mod_ssl and enable proxying to ssl-terminated endpoints. In the case where the artifact is not found, return NULL instead of the bogus "Artifact_not_found" url, otherwise we can end up in a loop where we continuously append that to the url. Strip trailing slashes from the returned proxy target. We can't guarantee that folks won't have a '/' at the end of the artifact url they return to Zuul (and in fact, it's probably more correct that they do). But our regex in mod_rewrite guarantees that we will add a slash to it. One sure way to handle this is just to strip it from the data returned from Zuul if present. Add a .dockerignore file with both itself and the Dockerfile added, so that docker won't rebuild extra layers (like the C++ compile layer) if we just change the Dockerfile. Change-Id: I00dfd0b6842abedf938702a816698d1c6526974d
14 lines
482 B
Plaintext
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>
|