Tomcat与B/S体系

server.xml

<Server>:根元素

  <Servier>:子元素,唯一

    <Connector>:表示连接,可以有多个

    <Engine>:引擎 核心

      <Host>:子元素,虚拟主机

        <Context>:子元素,外部应用必须配置context

映射虚拟主机

修改hosts文件

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
</host>

Http请求 Referer请求头

统计工作、防盗链

响应码

200:请求成功

404:请求的资源没有找到

500:服务器内部出现错误

302:重定向

304:如果本地浏览器缓存与服务器一致则返回304,显示本地缓存内容

no-cache

Expires:-1;

Cache-Control:no-cache;

Pragma:no-cache;

猜你喜欢

转载自www.cnblogs.com/xinghe1/p/9935198.html