1

I have configured Apache web server which passes the request to Weblogic App Server on context root /2d

ProxyPass /2d http://exlhamppatgc.2degreesmobile.co.nz:7003/2d
ProxyPassReverse /2d http://exlhamppatgc.2degreesmobile.co.nz:7003/2d

Now I want to serve static files (gif|jpg|png|jpeg|css|js|swf) from Apache and request should be served first from Apache htdoc folder first. If file is not there then look for app server.

0

You should be able to do this with a conditional rewrite. Depending on the exact path requirements, something like (untested):

RewriteCond %{DOCUMENTROOT}/%{REQUEST_URI} -f
RewriteRule /2d/((.*)\.(gif|jpg|png|jpeg|css|js|swf))$ /path/to/docroot/$1 [L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.