我configuration了Apache Web服务器,它将请求传递给上下文根/ 2d上的Weblogic App Server
ProxyPass /2d http://exlhamppatgc.2degreesmobile.co.nz:7003/2d ProxyPassReverse /2d http://exlhamppatgc.2degreesmobile.co.nz:7003/2d
现在我想要从Apache提供静态文件(gif | jpg | png | jpeg | css | js | swf),请先从Apache htdoc文件夹中提供请求。 如果文件不存在,则查找应用程序服务器。
你应该可以用条件重写来做到这一点。 根据确切的path要求,像(未经testing):
RewriteCond%{DOCUMENTROOT} /%{REQUEST_URI} -f
RewriteRule /2d/((.*)\.(gif|jpg|png|jpeg|css|js|swf))$ / path / to / docroot / $ 1 [L]