summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/demo.site
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx/sites-enabled/demo.site')
-rw-r--r--etc/nginx/sites-enabled/demo.site20
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/demo.site b/etc/nginx/sites-enabled/demo.site
new file mode 100644
index 0000000..f08f8cd
--- /dev/null
+++ b/etc/nginx/sites-enabled/demo.site
@@ -0,0 +1,20 @@
+server {
+ listen 80; ## listen for ipv4; this line is default and implied
+ # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+
+ root /home/demo/landing/;
+ index index.html;
+
+ # Make site accessible from http://localhost/
+ server_name demo.taler.net;
+ server_name www.demo.taler.net;
+
+ rewrite ^/bank $scheme://bank.demo.taler.net/ redirect;
+ rewrite ^/shop $scheme://shop.demo.taler.net/ redirect;
+
+ location ~ \.php$ {
+ fastcgi_pass unix:/var/run/php5-fpm.sock;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ include fastcgi_params;
+ }
+}