服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 正则expression式 nginx
  3. Nginx的位置匹配不会返回$ 1中的任何内容,但会redirect
Intereting Posts
计算容量的独立服务器设置 服务器pipe理器2012 意外的jBoss崩溃和审计信号 无法在Outlook 2007中打开encryption的电子邮件。错误:“无法打开此项目。 您的数字身份证名称不能被底层安全系统find。“ Monit重启apache2,我应该修复监控configuration还是服务器configuration? 通过思科ASA进行路由正在改变TCP序列号/ ACK号 为什么在IIS 6.0 MetaBase.xml中更改密码和ACL条目? 通过命令行使用GPG发送encryption的邮件? Windows 7上的SQL Server 2005以及SQL Server 2008 R2速成版 如何将客户端连接到INTERNAL WSUS服务器,但从Microsoft下载批准的更新? LANnetworking中的文件传输速度 使用Powershell通过CSV导入ExtensionAttribute 什么会导致PHP应用程序间歇性地在负载下进行分段? 提示? Debiannetworking服务器的最佳安装,设置和最佳实践文档在哪里? MySQL,PHP5,邮件等 在Apache升级之后,带有WebDAV的SVN停止工作

Nginx的位置匹配不会返回$ 1中的任何内容,但会redirect

这是我的nginx / 1.10.3中的一个位置块

location ~* ^/(.*)/announced$ { rewrite ^ /announcement/$1 redirect; } 

但每次我不断redirect到/公告,但variables$ 1丢失

我甚至试过这个

 location ~* ^/.*/announced$ { rewrite ^/(.*)/announced /$1/announcement redirect; } 

但仍然不起作用。

  • 用于SSL的Apache RedirectMatch允许LetsEncrypt无法正常工作
  • Nginx的地图query_string不会工作
  • ModRewrite 9返回参考限制
  • Mod_Rewrite配方
  • MySQL查询从表中select有效的域

  • 在bash中testing正则expression式模式的文件名
  • 如何从基本身份validation(正则expression式帮助)排除文件夹中的文件?
  • 如何在Apache中使用NOT条件将Web请求redirect到某个页面
  • 将文件夹中的所有图像移动到子文件夹,并将这些图像的所有引用更新到新的位置?
  • pop-before-smtp $ pat正则expression式for iFedmail中的Dovecot
  • HAProxy reqirep设置导致504网关超时
  • 帮助简单的mod_rewrite需要
  • 是否可以使用一个<ProxyMatch>规则匹配多个正则expression式?
  • 我可以将IIS重写规则写入文件吗?
  • 需要根据string模式匹配在uri中redirect到静态url
  • apache虚拟主机:自动子域名exception
  • puppet master – 编译将错误logging到stdout
  • 需要nginx regex重写debugging帮助
  • 意外的regsub的清漆行为
  • Debian,search并replaceiframe注入

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy