Skip to content

Instantly share code, notes, and snippets.

@david30907d
Last active January 19, 2017 08:51
Show Gist options
  • Save david30907d/5508fe339d6ef42bf11bd9caed40d150 to your computer and use it in GitHub Desktop.
Save david30907d/5508fe339d6ef42bf11bd9caed40d150 to your computer and use it in GitHub Desktop.

靜態網站

server {
    listen 8001;
    location / {
        root /home/david/htdocs/SentiMap;
	index index.html index.php;
    }

    location /images/ {
        root /data;
    }
}

proxy 到localhost

server {
    listen api.udic.cs.nchu.edu.tw;
    root /data/up1;


    location / {
      proxy_pass       http://localhost:32772;
      proxy_set_header Host      $host;
      proxy_set_header X-Real-IP $remote_addr;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment