Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache-HTTP server

 
naguri narayanareddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi ,

How apache server serves static related information , Usually we place all html ,css,js related files under web root folder of war or ear. This war or ear we place in app server. In this scenario how apache deals with static content.

Thanks and Regards
Narayan.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, and no.

Yes: You can always place all content in the web server and have Apache HTTPD redirect all requests to the web server.

No: You can always separate out the static content from the dynamic content and have Apache HTTPD server the static contents and redirect only dynamic content requests to the web server. Note that to do this you must carefully design your HTML pages (both the static ones and the ones generated by your servlets/JSPs/Struts/etc) to use the correct URLs because the static content cannot be accessed via relative paths - you now have to treat the static content as coming from a different web site.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic