Essentially all that was required was to tell apache where to find the static content in the virtual host definition in the httpd.conf file. To do this all that was required was set up an alias for static content as follows:
Alias /staticContent/ /var/www/staticContent/
In my JSP now when I put the apache server serves up the static content rather than Tomcat. This means that image1.jpg or any static content such as javascript can be changed and redeployed without restarting any server.
No comments:
Post a Comment