blob: 58fe8c1ca3a7b48a817e43e2c37eb49722fadc95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
server {
listen 80; ## listen for ipv4; this line is default and implied
# listen [::]:80 default_server ipv6only=on; ## listen for ipv6
server_name shop.test.taler.net;
root /home/test/merchant/examples/shop;
index index.php;
# Make site accessible from http://localhost/
location / {
try_files $uri $uri/ =404;
rewrite /taler/pay /pay.php;
rewrite /taler/contract /generate_taler_contract.php;
}
location /fullfillment {
rewrite /(.*) /$1.php;
}
location /test/contract {
rewrite (.*) /generate_taler_contract.php?cli_debug=yes;
}
location /test/contract/frontend {
rewrite (.*) /generate_taler_contract.php?backend_test=no;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location /backend {
rewrite /backend/(.*) /$1 break;
proxy_pass http://127.0.0.1:19966;
proxy_redirect off;
proxy_set_header Host $host;
}
rewrite ^/shop $scheme://shop.test.taler.net/ redirect;
}
|