java - 大型网站是怎么存放动态页和静态页的?
阿神
阿神 2017-04-18 10:15:47
0
2
695

现在要做一个资讯类的网站(用java),考虑到静态资源可以减少数据库的访问和优化seo,打算把首页、
文章详细页用freemarker、velocity生成,登录页、个人资料页、搜索页使用动态页(例如jsp或伪静态),问题是:动态、静态页需要独立部署吗?还是说就放在应用的webapp目录下?当然,这个应用肯定是要做集群的,前期考虑cdn + nginx + tomcat,其他大型网站是怎么做的?

阿神
阿神

闭关修行中......

reply all(2)
Peter_Zhu

Statize it and put it on the file server, and nginx will map it directly

PHPzhong

Basically Nginx + Tomcat, where Nginx is responsible for static page processing and forwards requests for dynamic pages to Tomcat. As for CDN, it is not necessary for small websites. If you want to use it, you need to plan the caching strategy of the server. Different CDN vendors have different solutions for caching dynamic pages.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template