summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/bank-demo.site
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx/sites-enabled/bank-demo.site')
-rw-r--r--etc/nginx/sites-enabled/bank-demo.site31
1 files changed, 31 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/bank-demo.site b/etc/nginx/sites-enabled/bank-demo.site
new file mode 100644
index 0000000..12781ab
--- /dev/null
+++ b/etc/nginx/sites-enabled/bank-demo.site
@@ -0,0 +1,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;
+
+}