在我本机配置时间不长,不过花了好长的时间写了份配置文档,和大家分享一下,希望对大家有用

LINUX发行版本:Fedora 14 , Apache .2.2

安装就不说了!依然采用rpm包安装方式 ,下面进入正题:

httpd.conf配置文件介绍

1、与Apache网络和系统相关的选项

#使用ServerRoot参数设置Apache安装目录

# ServerRoot: The top of the directory tree under which the server's

# configuraTIon, error, and log files are kept.

# you will save yourself a lot of trouble.

# Do NOT add a slash at the end of the directory path.

#

ServerRoot "/etc/httpd"

#使用Listen参数设置Apache监听端口,Apache默认是80

Listen 80

#使用User参数设置Apache进程的执行者

User apache

#使用Group参数设置Apache进程执行者所属的用户组

Group apache

#使用ServerAdmin参数设置网站管理员的邮箱地址

2、与Apache文件和目录权限相关选项

#使用DocumentRoot参数设置网站根目录

# DocumentRoot: The directory out of which you will serve your

# documents. By default, all requests are taken from this directory, but

# symbolic links and aliases may be used to point to other locaTIons.

#

DocumentRoot "/var/www/html"

#使用Directory段设置根目录权限

OpTIons FollowSymLinks

AllowOverride None

#使用Directory段设置/var/www/html目录权限

OpTIons Indexes FollowSymLinks

AllowOverride None

Order allow,deny

Allow from all

#设置首页为index.html

DirectoryIndex index.html index.html.var

#.ht后缀文件的访问权限控制与上目录的AllowOverride一起作用

# The following lines prevent .htaccess and .htpasswd files from being

# viewed by Web clients.

#

Order allow,deny

Deny from all

Satisfy All

3、与Apache日志相关的选项如下

#使用ErrorLog参数设置错误日志的位置

# ErrorLog: The location of the error log file.

# If you do not specify an ErrorLog directive within a

# container, error messages relating to that virtual host will be

# logged here. If you *do* define an error logfile for a

# container, that host's errors will be logged there and not here.

#

ErrorLog logs/error_log

#使用LogLevel参数设置错误日志的级别

# LogLevel: Control the number of messages logged to the error_log.

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

#

LogLevel warn

#使用LogFormat参数设置访问日志的格式模板

# The following directives define some format nicknames for use with

# a CustomLog directive (see below).

#

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

#使用CustomLog参数设置访问日志的格式模板

# For a single logfile with access, agent, and referer information

# (Combined Logfile Format), use the following directive:

#

CustomLog logs/access_log combined

linux搭建乐网服务器,教你linux搭建web服务器相关推荐

  1. 外网主机访问虚拟机下的Web服务器_服务器应用_Linux公社-Linux系统门户网站

    外网主机访问虚拟机下的Web服务器_服务器应用_Linux公社-Linux系统门户网站 之前在CentOS虚拟机上安装了LAMP,搭建起了自己的web服务器,具体流程见: http://www.lin ...

  2. 推荐两款支持在linux下运行ASP.NET网站的国产免费WEB服务器软件

    推荐两款支持在linux下运行ASP.NET网站的国产免费WEB服务器软件 1.kangle kangle web server是一款跨平台(windows/linux/bsd).功能强大.安全稳定. ...

  3. 【千峰网安学习】IIS之WEB服务器

    才开始接触网络安全,很多知识欠缺,一边学习一边用博客记录,希望自己能够坚持,可能有的内容掌握不太准确,如果有什么错误的地方还请大家多多指正,虚心接受大家的建议,大家一起加油,侵删~ 系列文章目录 一. ...

  4. 搭建svn服务器并自动更新到web服务器

    搭建svn服务器并自动更新到web服务器 安装搭建svn和版本库 使用yum安装svn yum install -y subversion -y的作用就是默认在后续弹出的提示中选择yes 可使用yum ...

  5. wap网站服务器要求,使您的WEB服务器支持WAP数据发送

    使您的WEB服务器支持WAP数据发送 2005-04-26 00:00 作者: 转载出处: 推荐人:web 编者按: 默认的WEB服务器是不支持WAP数据发送的, 但是, 只需要轻松配置一下服务器对应 ...

  6. Web服务器(01)——介绍web服务器

    文章目录 Web服务器--介绍web服务器 一.Web服务简介 二.Web服务协议 三.Web服务器与应用服务器的区别 四.Web服务器的工作原理 1.链接过程 2.请求过程 3.应答过程 4.关闭连 ...

  7. web服务器 apache_心跳和Apache Web服务器

    web服务器 apache 维持最大的系统正常运行时间对于按需计算的成功至关重要. 不幸的是,许多用于高可用性(HA)的现成解决方案都很昂贵,并且需要专业知识. 本系列的五篇文章为使用公开可用的软件实 ...

  8. web服务器的构建与配置文件,Web服务器构建与配置.ppt

    文档介绍: Web服务器的构建与配置 黄卢记 嘲氛毋瞬雨犁蔑藕京误泣蒲厕瘁荐罗傅漳惰叮衙腺鹊川焰炙儒太轻毛洽尹Web服务器构建与配置Web服务器构建与配置 一.实训目的 利用Windows Serve ...

  9. 阿里云服务器Windows Server 2019 安装Web服务器(IIS)教程

    最近买了一个阿里云Windows server 2019服务器来搭建云服务器,过程给大家分享一下互相学习,让小白快速上手! 一.本地电脑远程登录阿里云Windows server 2019服务器 参见 ...

  10. 服务器安全性文档,Microsoft Web服务器的安全性

    Microsoft Web服务器的安全性 徐皓 [摘要]论述了微软Web服务器的安全措施,包括Web服务器权限.IP地址限制.客户证书映射和与之有关的安全套接字层(SSL)协议. [期刊名称]< ...

最新文章

  1. 关系抽取论文总结(relation extraction)不断更新
  2. RSAC简介 RSAC 2020 最热门的36款网络安全产品
  3. ACM模板--链接表 有向图
  4. 内置对象—request
  5. AAAI 2020 开源论文 | 用于深度立体匹配的自适应单峰匹配代价体滤波
  6. ssh无密码登录设置(centos6系统下实现)
  7. ajax正则验证p标签显示,JQuery+Ajax实现唯一性验证、正则
  8. TI Sitara AM335x系统之AM335x uboot spl分析
  9. Codeforces Round #228 (Div. 2)
  10. Cookie中的httponly的属性和作用
  11. 别说我不告诉你,如此养车包你把自己也养穷了……
  12. 电影《邪不压正》打动我的
  13. 01 为什么要学习计算机组成原理?
  14. java 大转盘算法_幸运大转盘抽奖 抽奖算法 程序实现逻辑
  15. prism 计算 Spearman相关
  16. Error. An error occurred while processing your request.
  17. 前端开发中组件化的优点
  18. 微信小程序服务商下子商户支付下单接口
  19. linu修改open files无效_Proe/Creo工程图塑胶件剖面线修改问题解答篇
  20. Altium如何导入DXF/DWG文件

热门文章

  1. 前端学习(1962)vue之电商管理系统电商系统之渲染商品分类的选择框
  2. java学习(167):生产者消费者问题
  3. java响应很慢排插_服务响应时间慢:Java SecureRandom和/ dev / random - java
  4. 机器学习算法总结--K近邻
  5. [机器学习笔记]Note8--机器学习应用建议
  6. python怎么输出结果_Python中print()常用输出方法
  7. 辨析 const指针 和 指向常量的指针
  8. 配置msf连接postgresql数据库
  9. Head First设计模式之备忘录模式
  10. SMB MS17-010 利用(CVE-2017-0144 )