File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Separating static and dynamic file

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Does anyone has the guildline or documentation about which files are static and which files are dynamic ? I was requested to put all the static files to another Apache server while the dynamic one will be served by Tomcat.
[originally posted on jforum.net by mesostructure]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty much everything in jForum is dynamic since it supports multiple templates. I.e., the locations of images, js, and the like files are defined by Freemarker scripts which use information set from jForum and the web app server. In addition, some of the images are related to the user's language choices.

If you're using a single template, your MIGHT be able to add in some proxy rules to redirect URLs like /jForum/templates/default/ to a copy of this directory on the Apache server. But I've never done this before.. just a theoretical possibility.

An alternative might be to edit the html template files to use a different URL for images, javascript, css, and the like. But that's a fair number of files to change and make sure they work.


[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic