drupal-demo.site (1017B)
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 drupal.demo.taler.net; 6 7 root /home/demo/drupal-demo; 8 9 # Make site accessible from http://localhost/ 10 11 # location / { 12 # try_files $uri $uri/ =404; 13 # rewrite /taler/pay /pay.php; 14 # rewrite /taler/contract /generate_taler_contract.php; 15 # } 16 17 # location /fullfillment { 18 # rewrite /(.*) /$1.php; 19 # } 20 21 22 location ~ \.php$ { 23 fastcgi_index index.php; 24 fastcgi_pass unix:/var/run/php5-fpm.sock; 25 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 26 include fastcgi_params; 27 } 28 29 # location /backend { 30 # rewrite /backend/(.*) /$1 break; 31 # proxy_pass http://127.0.0.1:19966; 32 # proxy_redirect off; 33 # proxy_set_header Host $host; 34 # } 35 36 client_max_body_size 10M; 37 client_body_buffer_size 128k; 38 39 include apps/drupal/drupal.conf; 40 }