1条回答 默认 最新
关注如果是想通过
http://www.qinyin.com/writing.html
访问内部的
http://www.qinyin.com/?plugin=Piano&QY=writing
可以这样配置试试看。location / { default_type text/html; if ( $request_uri ~* /\?plugin=Piano&QY=.*? ) { return 200 $args; } if ( $request_uri ~* /(.*?).html ) { rewrite ^/(.*?).html /?plugin=Piano&QY=$1 break; proxy_pass http://localhost ; } root html; index index.html; }本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报 编辑记录解决 1无用