服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. Apache的2.2
  3. configurationApache根据请求的path将404错误redirect到一个位置
Intereting Posts
如何让ssh等到命令退出? 从命令行更新环境variables(Windows 2008 Server Core) 我如何知道通过SSH连接到我的Linode VPS的证书? 被动FTP服务器超时,我只能使用主动 ARP广播响应与几个不同的MAC为相同的IP 信号分段在特定的URL访问之后出现故障 rsync只有在date和时间之后创build或修改的文件 从5.3.3升级到5.6之后,php不能和apache一起工作 Azure虚拟机,所有密码在login时都会更改 如何禁用Windowsnetworking驱动器的自动login 在Perc控制器上检查后台IO任务 STUN是否适用于大多数NAT? 为什么mod_jk绕过Apache授权? 别名扭曲的服务器内容? 在configuration过程中解决未find的包和错误,在脚本中进行安装

configurationApache根据请求的path将404错误redirect到一个位置

现在我在我的httpd.conf文件中有以下内容:

ErrorDocument 404 /index.html 

这工作,但我需要一个额外的规则,也将处理我的debuggingpath。 例如,如果我请求

 http://www.mypage.com/debug/page-that-does-not-exist.html 

我希望它redirect到:

 /debug/index.html 

而不是我的文档根目录中的索引。 什么是最简单的方法来完成这个?

  • 随机redirect到一个.html网站的404
  • 一个服务器上的Apache多个主机 – 不同的端口
  • 设置子域Apache不能正常工作
  • www url创build一个错误,非www作品
  • itk_post_read():setgid():操作不允许

  • 我的服务器正在受到TCP连接的攻击
  • MPM Prefork Apache使用荒谬的内存量
  • 虚拟主机,维护现有的应用程序
  • 整理由vloggerpipe理的旧apache日志
  • 阿帕奇崩溃/ hangup doesnt服务请求
 <Directory /debug> ErrorDocument 404 /debug/index.html </Directory> 
  • Apache2突然给了内部500错误
  • 我怎样才能轻松定制Apache Web服务器的错误页面
  • Apache目录列表修剪文件名
  • 有没有办法使用像RewriteRule … 的外部URL?
  • configurationApache只能在重新启动后识别对htdocs的更改
  • Apache限制连接
  • 如何确定大概的最大请求数量?
  • networking服务器停止接受新的连接
  • 无法启动apache …(98)已经在使用的地址:make_sock:无法绑定到地址0.0.0.0:80
  • apache2.2中的大量访问保护

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