Search code examples
apachemod-rewritereverse-proxyhttpd.confmod-proxy

Apache Proxy pass for static file


I would like to serve same file(/app/index.html) for all path request path(/app/**/*.*) in same & /app/index.html is present in same Apache server itself, not sure how to setup proxy pass for this scenario in httpd.conf file. Need help in adding proxy rules.


Solution

  • Seems like you just need simple RewriteRule:

    RewriteEngine On
    RewriteRule ^/app/(.*)/ /app/index.html