summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/drupal-demo.site
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx/sites-enabled/drupal-demo.site')
-rw-r--r--etc/nginx/sites-enabled/drupal-demo.site40
1 files changed, 40 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/drupal-demo.site b/etc/nginx/sites-enabled/drupal-demo.site
new file mode 100644
index 0000000..d91c3f7
--- /dev/null
+++ b/etc/nginx/sites-enabled/drupal-demo.site
@@ -0,0 +1,40 @@
+server {
+ listen 80; ## listen for ipv4; this line is default and implied
+ # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+
+ server_name drupal.demo.taler.net;
+
+ root /home/demo/drupal-demo;
+
+ # 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 ~ \.php$ {
+ fastcgi_index index.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;
+# }
+
+ client_max_body_size 10M;
+ client_body_buffer_size 128k;
+
+ include apps/drupal/drupal.conf;
+}