diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-22 01:33:05 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-22 01:33:05 +0200 |
commit | e805457baed7b8c4aab70146fc7c8355292012e5 (patch) | |
tree | f06cb48b93dd14ea29368ee317682bfa11f86593 /etc/nginx/sites-enabled/blog-test.site | |
parent | c2417482faed7e5e38195552528e45702916cceb (diff) | |
download | deployment-e805457baed7b8c4aab70146fc7c8355292012e5.tar.gz deployment-e805457baed7b8c4aab70146fc7c8355292012e5.tar.bz2 deployment-e805457baed7b8c4aab70146fc7c8355292012e5.zip |
python bank
Diffstat (limited to 'etc/nginx/sites-enabled/blog-test.site')
-rw-r--r-- | etc/nginx/sites-enabled/blog-test.site | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/etc/nginx/sites-enabled/blog-test.site b/etc/nginx/sites-enabled/blog-test.site index 99a1e21..6da16d2 100644 --- a/etc/nginx/sites-enabled/blog-test.site +++ b/etc/nginx/sites-enabled/blog-test.site @@ -1,45 +1,5 @@ server { - listen 80; ## listen for ipv4; this line is default and implied - # listen [::]:80 default_server ipv6only=on; ## listen for ipv6 - - server_name blog.test.taler.net; - - ssi on; - root /home/test/merchant/examples/blog; - index index.html; - - # Make site accessible from http://localhost/ - - location / { - try_files $uri $uri/ =404; - rewrite /taler/pay /pay.php; - rewrite /taler/contract /generate_taler_contract.php; - - } - - location /fullfillment { - rewrite /(.*) /$1.php; - - } - - location /articles { - - internal; - } - - location ~ \.php$ { - - fastcgi_pass unix:/var/run/php5-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include fastcgi_params; - - } - - location /backend { - rewrite /backend/(.*) /$1 break; - proxy_pass http://127.0.0.1:19966; - proxy_redirect off; - proxy_set_header Host $host; - } - include conf.d/test.redirects; + listen 80; + server_name bank.test.taler.net; + rewrite ^ https://$server_name$request_uri? permanent; } |