kingbosster 发表于 2018-11-15 06:24:00

nginx配置注意事项2

server {  listen             80;
  server_name    localhost;
  root   html;
  location ~* "/\d{1,4}\.htm$" {
  proxy_pass http://192.168.0.8;
  rewrite /(\d+\.htm)$ /post/$1 last;
  }
  location ~* "/\d{5,}\.htm$" {
  rewrite "/(\d{5,})\.htm" /post.php?id=$1 last;
  fastcgi_pass 127.0.0.1:9000;
  include fastcgi.conf;
  }
  location / {
  }
  }

页: [1]
查看完整版本: nginx配置注意事项2