diff options
Diffstat (limited to 'debian/etc/apache2/sites-available/taler-merchant.conf')
-rw-r--r-- | debian/etc/apache2/sites-available/taler-merchant.conf | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/debian/etc/apache2/sites-available/taler-merchant.conf b/debian/etc/apache2/sites-available/taler-merchant.conf index eebc6826..5d0050a7 100644 --- a/debian/etc/apache2/sites-available/taler-merchant.conf +++ b/debian/etc/apache2/sites-available/taler-merchant.conf | |||
@@ -1,18 +1,22 @@ | |||
1 | <!-- | 1 | # Make sure to enable the following Apache modules before |
2 | Make sure to enable the following Apache modules before | 2 | # integrating this into your configuration: |
3 | integrating this into your configuration: | 3 | # |
4 | # a2enmod proxy | ||
5 | # a2enmod proxy_http | ||
6 | # a2enmod headers | ||
7 | # | ||
8 | # NOTE: | ||
9 | # - consider to adjust the location | ||
10 | # - consider putting all this into a VirtualHost | ||
11 | # - strongly consider setting up TLS support | ||
12 | # | ||
13 | # For all of the above, please read the respective | ||
14 | # Apache documentation. | ||
15 | # | ||
16 | <Location "/"> | ||
17 | ProxyPass "unix:/var/run/taler/merchant-httpd/merchant-http.sock|http://example.com/" | ||
4 | 18 | ||
5 | # a2enmod proxy | 19 | # NOTE: |
6 | # a2enmod proxy_http | 20 | # - Uncomment this line if you use TLS/HTTPS |
7 | # a2enmod headers | 21 | RequestHeader add "X-Forwarded-Proto" "https" |
8 | # a2enmod rewrite | ||
9 | --> | ||
10 | |||
11 | <Location "/taler-merchant/"> | ||
12 | RewriteEngine On | ||
13 | RewriteCond "%{HTTP:AUTHORIZATION}" "!= %SECURITYTOKEN%" | ||
14 | RewriteRule "(.+)/private/" "-" [F] | ||
15 | |||
16 | ProxyPass "unix:/var/lib/taler-merchant/httpd/merchant.sock|http://example.com/" | ||
17 | RequestHeader add "X-Forwarded-Proto" "https" | ||
18 | </Location> | 22 | </Location> |