summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/bank-demo.site
blob: 12781abbdc234d8394d6b0d7110b98de5daf441d (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
server {
	listen   80; ## listen for ipv4; this line is default and implied
 	# 	listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	root /home/demo/bank/website;
        index index.php;

	# Make site accessible from http://localhost/
	server_name bank.demo.taler.net;

        location ~ \.php$ {
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }

# To be uncommented when testing Django bank
#        location ~ ^/auth/static  {
#            root /home/demo/bank/TalerBank/Bank/templates;
#            rewrite /auth/static/(.*) /$1 break;
#        }
#
#	# Reach Django
#	location ~ ^/(auth|admin) {
#		uwsgi_pass  django;
#		include     /home/demo/bank/TalerBank/uwsgi_params;
#	}

	rewrite ^/shop $scheme://shop.demo.taler.net/ redirect;

}