zoukankan      html  css  js  c++  java
  • 编译安装 http

    1. 安装 apr

      http服务依赖 apr和apr-util ,安装 http 前需先安装这两个程序

      apr 简介:http://www.cnblogs.com/Alight/p/3997777.html

      下载:http://apr.apache.org/download.cgi

      apr-1.5.2.tar.gz

      > tar xvf apr-1.5.2.tar.gz

      > cd apr-1.5.2

      > ./configure --prefix=/usr/local/apr-util

      > make && make install

      apr-util-1.5.4.tar.gz

      > tar xvf apr-util-1.5.4.tar.gz

      > cd apr-util-1.5.4
      >
    ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

      > make && make install

    2. 安装 http

      下载: http://httpd.apache.org/

      httpd-2.4.25.tar.gz

      > tar xvf httpd-2.4.25.tar.gz

      > cd httpd-2.4.25

      > ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/

      > make && make install

    3. 查看版本

      > httpd -v  

     4. http 安全优化

      在 http 配置文件 httpd.conf 添加如下内容

    ServerTokens Prod
    ServerSignature Off
    
    RewriteEngine on
    RewriteCond {REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    RequestHeader unset Proxy early
    

      

  • 相关阅读:
    面向对象
    数据库,连接查询
    主外键,子查询
    字符串函数
    数据库。模糊查询,聚合函数,时间日期函数
    数据库。增,删,改,查
    数据库
    多窗体及菜单
    winform公共控件及其常用属性
    winform 客户端应用程序(c/s b/s)
  • 原文地址:https://www.cnblogs.com/yorkyang/p/6514010.html
Copyright © 2011-2022 走看看