• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache-HTTP server

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic