summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/bank-test.site
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx/sites-enabled/bank-test.site')
-rw-r--r--etc/nginx/sites-enabled/bank-test.site37
1 files changed, 37 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/bank-test.site b/etc/nginx/sites-enabled/bank-test.site
new file mode 100644
index 0000000..2664780
--- /dev/null
+++ b/etc/nginx/sites-enabled/bank-test.site
@@ -0,0 +1,37 @@
+upstream django {
+ server 127.0.0.1:8000;
+}
+
+server {
+ listen 80; ## listen for ipv4; this line is default and implied
+ # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+
+ root /home/test/bank/website;
+ index index.php;
+
+ # Make site accessible from http://localhost/
+ server_name bank.test.taler.net;
+
+ location ~ \.php$ {
+ fastcgi_pass unix:/var/run/php5-fpm.sock;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
+ location ~ ^/auth/static {
+ rewrite /auth/static/(.*) /static/$1 break;
+ uwsgi_pass django;
+ include /home/test/bank/TalerBank/uwsgi_params;
+
+ }
+
+ # Reach Django
+ location ~ ^/(auth|admin|static) {
+ uwsgi_pass django;
+ include /home/test/bank/TalerBank/uwsgi_params;
+ }
+
+ rewrite ^/shop$ $scheme://shop.test.taler.net/ redirect;
+ rewrite ^/mint$ $scheme://mint.demo.taler.net/ redirect;
+ rewrite ^/mint/(.*)$ $scheme://mint.demo.taler.net/$1 redirect;
+}