0

I have an Apache server that is working as a reverse proxy to a node server. I'm trying to bypass the proxy for a static file i.e. ads.txt

I have the following conf:

  <Files "ads.txt"> 
      Order Deny,Allow 
      Allow from all
  </Files>
  <Location "/ads.txt">
     SetHandler None
     Require all granted
  </Location>
  ProxyPass /ads.txt !  
  ProxyPass / http://localhost:3000/
  ProxyPassReverse / http://localhost:3000/

But this causes a redirect loop when trying to access https://www.example.com/ads.txt and has me stumped. Can anyone shed some light on this?

Thanks

0 Answers0