Apache2: url-based exception for ProxyPass

i have apache2 reverse proxy which passes traffic to some application server. everything going to /server/ is handled by http://localhost:8000.

i had to do one exception – serve content for /server/something.txt from a static file. here’s what i did:

Alias /server/something.txt /var/www/something.txt
ProxyPass /server/something.txt !
ProxyPass /server/ http://localhost:8000 retry=1

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)