diff options
Diffstat (limited to 'examples/blog')
-rw-r--r-- | examples/blog/data/nginx.conf | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/blog/data/nginx.conf b/examples/blog/data/nginx.conf new file mode 100644 index 00000000..be9e22f9 --- /dev/null +++ b/examples/blog/data/nginx.conf @@ -0,0 +1,50 @@ +server { + listen 80; + listen [::]:80; + + server_name blog; + + ssi on; + root /home/marcello/merchant/examples/blog; + index index.html; + + location / { + try_files $uri $uri/ =404; + rewrite /taler/pay /pay.php; + rewrite /taler/contract /generate_taler_contract.php; + + } + + # #4456 + location ~ ^/data/([^/]+)/([^/]+)\.(jpg|png|gif|jpe?g)$ { + rewrite ^/data/([^/]+)/([^/]+)\.(jpg|png|gif|jpe?g)$ /images.php?article=$1&image=$2.$3; + } + + location ~ \.php$ { + + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + + location /fullfillment { + + rewrite /(.*) /$1.php; + } + + location /articles { + internal; + } + + # #4456 + location /data { + internal; + } + location /backend { + rewrite /backend/(.*) /$1 break; + proxy_pass http://127.0.0.1:9966; + proxy_redirect off; + proxy_set_header Host $host; + + } +} |