It all works except for the proxy. I am getting a 404 page from app.php (my rewrite). Is there anyway to tell rewrite to ignore proxy paths or can I tell proxy to override all else?
I did find a fix for this but I do not like it. I can add this to my rewrite directive:
if {path} not /test/
This is a simple test to try to figure out this problem but on my real server I have many proxies that I want to setup. I don’t like the idea of having to add 8+ if statements to my rewrite.
I know I’m kinda being petty about this but I just figured I would ask. Any suggestions?
You can try specify another vhost/location for the path you want to prioritise. Caddy will always use the configuration of the longest matching vhost. It would look like: