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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.