taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

blog-demo.site (992B)


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