httpd 404s a request with slash (%2f) or null byte (%00)

Solution Unverified - Updated -

Issue

  • Redirect everything to specific path using mod_rewrite but doesn't work for URLs with %2f or %00, the Apache httpd returns 404 not found

    RewriteRule ^/(.*) /sorry.html
    
  • We try to proxy all requests, but a request with %00 is not proxied through:

    ProxyPass / http://localhost:8080/
    

Environment

  • Apache httpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content