I am new to apache and trying to figure out a way in which i can send all the static content from apache rather than from application server. Currently i have one weblogic admin on where i am hosting my application and using Apache 2.2. I tried below configuration but nothing seems to be working.
- Code: Select all
<Location /hello>
SetHandler weblogic-handler
WLExcludePathOrMimeType *.json,*.html,*.png,*.jpg,*.css,images/*.jpg
</Location>
<IfModule mod_weblogic.c>
WebLogicHost localhost
WebLogicPort 7844
HungServerRecoverSecs 3600
ConnectTimeoutSecs 25
ConnectRetrySecs 2
Debug OFF
</IfModule>
As per my understaning the above code will skip searching for these static files from weblogic app server and will see it from apach root directory which is currently set as Htdoc which is defualt in case of windows. However nothing is being picked up when i am putting these static files there. I know there must be better solution than this. Can someone please guide me on this issue.
Thanks
Vikram