diff bin/homepage @ 1212:95dfce5c12ce

rearrange /static. new bin/homepage Ignore-this: 2b17aa8e74a9c052a9a93704e85287b1
author drewp@bigasterisk.com
date Sun, 07 Jun 2015 22:42:33 +0000
parents
children 0d295af23c4b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/homepage	Sun Jun 07 22:42:33 2015 +0000
@@ -0,0 +1,36 @@
+#!/bin/zsh
+
+CONF=/tmp/light9_nginx.conf
+ROOT=`dirname $0`/..
+ROOT=${ROOT:a}
+
+cat > $CONF <<EOF
+worker_processes 1;
+
+daemon off;
+error_log /tmp/light9_homepage.err;
+pid /dev/null;
+
+events {
+  worker_connections 1024;
+}
+
+http {
+ include $ROOT/light9/web/mime.types;
+ 
+ server {
+  listen 8052;
+  access_log /tmp/light9_homepage_access.log;
+
+  location /rdfdb { proxy_pass http://localhost:8051/; }
+  location /ascoltami { proxy_pass http://localhost:8040/; rewrite /ascoltami(.*) $1 break; }
+
+  location / {
+    root $ROOT/light9/web;
+  }
+
+ }
+}
+EOF
+
+exec nginx -c $CONF