标签归档:nginx

ptcms nginx伪静态规则

  1.rewrite "^(.*)sort_([0-9]+)_([0-9]+).html$" $1sort.php?sortid=$2&page=$3 last;
  2.rewrite "^(.*)over_([0-9]+).html$" $1over.php?page=$2 last;
  3.rewrite "^(.*)top_(.*)_([0-9]+).html$" $1top.php?topid=$2&page=$3 last;
  4.rewrite "^(.*)topover_(.*)_([0-9]+).html$" $1topover.php?topid=$2&page=$3 last;
  5.rewrite "^(.*)book_([0-9]+).html$" $1book.php?bookid=$2 last;
  6.rewrite "^(.*)down_(.*)_([0-9]+).html$" $1down.php?bookid=$3&type=$2 last;
  7.rewrite "^(.*)readend_([0-9]+).html$" $1readend.php?bookid=$2 last;
  8.rewrite "^(.*)read_([0-9]+)_([0-9]+).html$" $1read.php?cutid=$2&bookid=$3 last;
  

nginx反向代理

GAE
自己在用的

  1.server{
  2.
  3.listen ip:80;
  4.server_name freedodo.com;  #本空间要绑定的域名
  5.location / {
  6.proxy_redirect off;
  7.proxy_pass http://your-app-id.appspot.com;   #要反向的域名 GAE地址
  8.proxy_set_header X-Real-IP $remote_addr;
  9.}
  10.}

 

网上 的

  1.    server
  2.    {