- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
apache服务器搭建笔记(Apache server build notes)
apache服务器搭建笔记(Apache server build notes)
1. basic principles of WWW server
1.1 HTTP protocol
Establish a connection request information returned in response to - - - close connection information
WWW server on 1.2 Linux
Apache server features: open source, cross platform applications,
2. Apache installation and configuration
# rpm -ivh httpd-2.2.3-11.el5_1.3.i386.rpm
directory structure
/etc/httpd/ root directory
/etc/httpd/conf/httpd.conf master configuration file
/var/www/html/ default home root directory
/var/log/httpd/ log file directory
Access log file for /var/log/httpd/access.log Apache server
Error log file for /var/log/httpd/error.log Apache server
3. configuration instructions
ServerRoot root directory
The hostname of the ServerName server
Listen listening port
DocumentRoot default home root directory
DirectoryIndex supports home page type
NameVirtualHost supports virtual hosting
AddDefaultCharset defaults to font support
Timeout 300 defines the timeout interval between client programs and server links
MaxKeepAliveRequests 20 defines the maximum number of requests for a HTTP that a connection can take
KeepAliveTimeout 15
Maxclients 150
4. service starts and stops
Service httpd start
5. auto start
Chkconfig --level 2345 httpd on
6., the virtual host based on the IP address
6.1 edit the httpd.conf file, the contents are as follows
VirtualHost 0
ServerAdmin root@
DocumentRoot /var/www/html/baidu
ServerName
ErrorLog logs/-error_log
CustomLog logs/-access_log common
/VirtualHost
VirtualHost 1
ServerAdmin root@
DocumentRoot /var/www/html/google
ServerName
ErrorLog logs/-error_log
CustomLog logs/-access_log common
/VirtualHost
6.2 create directory home pages for different virtual sites
# MKDIR /var/www/html/baidu
# MKDIR /var/www/html/google
# echo /var/www/html/baidu/index.html
# echo /var/www/html/google/index.html
6.3 restart the httpd service
# service httpd restart
7., the virtual host based on the IP address
7.1 edit the httpd.conf file, the contents
您可能关注的文档
- 2005年上半年党风廉政建设工作总结(组织部)(First half of 2005 the work of building a clean and honest government (Organization Department)).doc
- 2005年江苏省高考综合考试文科综合试卷(Comprehensive examination paper of Jiangsu college entrance examination in 2005).doc
- 2005第三届小学「希望杯」五年级科普活动试题(含答案)(2005 third primary school Hope Cup five grade science popularization activity examination questions (including answers)).doc
- 200609vf真卷详解(200609vf true volume detail).doc
- 2006十大新人(20 thousand and 60 new people).doc
- 2006年上半年英语国家概况真题解析(The first half of 2006 survey of English speaking countries task2).doc
- 2006年国家司法考试大纲—商法(Outline of the national judicial examination in 2006 - Commercial Law).doc
- 2006年市五五普法工作规划(2006 55 city law popularization plan).doc
- 2006年高中地理课改培训心得体会(Experience of geography curriculum reform training in senior high school in 2006).doc
- 2006年浙江省造价员安装工程计价考试试卷-附部分答案(Zhejiang 2006 cost engineer installation engineering examination papers - attached part of the answer).doc
- aph普鲁士角色歌.mein gott!+俺様による俺様の为の俺様の歌(翻译+歌词)(APH 鲁士 Bo song of my my this song with mein Gott, I like the bursting of 译 lyrics and translation.).doc
- ansys连续梁桥(ansys连续梁桥).doc
- android开发环境搭建(Android开发环境搭建).doc
- arm等精度测频测相c程序(Arm equal precision frequency measuring phase C program).doc
- api初步认识(API initial understanding).doc
- atx电源快速维修(ATX power supply, fast maintenance).doc
- au3 脚本实现软件自动安装(Au3 script implementation software automatically installed).doc
- avr熔丝位(avr熔丝位).doc
- b9锁定中高端 一汽奔腾崭露新战略(B9 lock in the high-end Pentium FAW reveal a new strategy).doc
- bash的调试、内部命令、特殊参数(Bash debugging, internal commands, and special parameters).doc
最近下载
- 飞利浦HTS5540 93家庭影院说明书.pdf
- 面馆促销聚人气方案.docx VIP
- 《中国文化概况》带翻译版.pdf VIP
- 人教版数学六年级下册比例(课件).pptx VIP
- 旧版现代西班牙语第1册 课文+答案.pdf VIP
- 2023年贵州贵州高速公路集团有限公司招聘笔试真题.docx VIP
- 变电站运行中倒闸防误操作及对策.doc VIP
- 汽车车身制造技术 项目三 车身焊装工艺.ppt VIP
- Chapter 4 Lending a hand (课件)-2024-2025学年新思维小学英语5A.pptx VIP
- 2025-2030中国会展行业市场发展现状分析及发展趋势与投资前景研究报告.docx
文档评论(0)