summaryrefslogtreecommitdiff
path: root/debian/etc/apache2/sites-available/taler-merchant.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/etc/apache2/sites-available/taler-merchant.conf')
-rw-r--r--debian/etc/apache2/sites-available/taler-merchant.conf18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/etc/apache2/sites-available/taler-merchant.conf b/debian/etc/apache2/sites-available/taler-merchant.conf
new file mode 100644
index 00000000..eebc6826
--- /dev/null
+++ b/debian/etc/apache2/sites-available/taler-merchant.conf
@@ -0,0 +1,18 @@
+<!--
+ Make sure to enable the following Apache modules before
+ integrating this into your configuration:
+
+ # a2enmod proxy
+ # a2enmod proxy_http
+ # a2enmod headers
+ # a2enmod rewrite
+-->
+
+<Location "/taler-merchant/">
+RewriteEngine On
+RewriteCond "%{HTTP:AUTHORIZATION}" "!= %SECURITYTOKEN%"
+RewriteRule "(.+)/private/" "-" [F]
+
+ProxyPass "unix:/var/lib/taler-merchant/httpd/merchant.sock|http://example.com/"
+RequestHeader add "X-Forwarded-Proto" "https"
+</Location>