Context - order and proxy

Druciak

Active Member
#1
Hi

I have problem with proxy.

my context configuration:






/upload context not working when exp:/* exist.
if i delete context with proxy, i have access to /upload directory.
When proxy exist, (with order 1 or 2) don't have access to /upload

What i need to do if i want to serve files from /upload directory from local web server not by proxy?
 

NiteWave

Administrator
#2
virtual host level rewrite has higher priority, it can be used to resolve context conflicts issue.

here's one safe and easy to understand solution:
remove those 2 contexts, implement them all in rewriterule

in Rewrite Tab, add
RewriteCond %{REQUEST_URI} !^/upload
RewriteRule /(.*)$ http://proxy/$1 [P]
 
Top