aboutsummaryrefslogtreecommitdiff
path: root/debian/etc/apache2/sites-available/taler-merchant.conf
blob: 948b29cfed48245fa4a422c6fcfd6eba48fe7fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Make sure to enable the following Apache modules before
# integrating this into your configuration:
#
# a2enmod proxy
# a2enmod proxy_http
# a2enmod headers
#
# NOTE:
# - consider to adjust the location
# - consider putting all this into a VirtualHost
# - strongly consider setting up TLS support
#
# For all of the above, please read the respective
# Apache documentation.
#
<Location "/">
  ProxyPass "unix:/var/run/taler-merchant/httpd/merchant-http.sock|http://example.com/"

  # NOTE:
  # - Uncomment this line if you use TLS/HTTPS
  RequestHeader add "X-Forwarded-Proto" "https"
</Location>