Apache入门经验总结
时间:2008-11-24
来源:互联网
Apache HTTPd 使用记录
1,Download the software: httpd-2.2.0.tar.gz
http://httpd.apache.org/download.cgi
2,Compiling and Installing
1)extract:tar -zxvf httpd-2.2.0.tar.gz
2)./configure --prefix=/usr/local/apache ----enable-rewrite=shared ----enable-speling=shared
3)make
4)make install
5)customize---vi /usr/local/apache/conf/httpd.conf
ServerRoot "/usr/local/apache"(制定服务器的根目录)
Listen 192.168.71.88:80(此处是更改默认的端口,可以写多个,应用于一块网卡绑定多个IP)
#Listen 80(表示所有IP均为80端口)
ServerName zhqmail.scut.edu.cn:80(域名)
DocumentRoot "/var/www/html"(设置存放网页的根目录)
<Directory />(全局权限设置)
Options FollowSymLinks
#AllowOverride None
AllowOverride all
Order deny,allow
#Deny from all
Allow from all
</Directory>
<Directory "/var/www/html">(网页根目录权限设置)
Options Indexes FollowSymLinks
Allow from all
</Directory>
<IfModule dir_module>(设置默认的启动文件,默认为index.html,可以个性化更改)
DirectoryIndex index.html
</IfModule>
3,startting and stopping the service
ln /usr/local/apache/bin/apchectl /etc/init.d/httpd
系统启动:/etc/init.d/httpd start
系统停止:/etc/init.d/httpd stop
1,Download the software: httpd-2.2.0.tar.gz
http://httpd.apache.org/download.cgi
2,Compiling and Installing
1)extract:tar -zxvf httpd-2.2.0.tar.gz
2)./configure --prefix=/usr/local/apache ----enable-rewrite=shared ----enable-speling=shared
3)make
4)make install
5)customize---vi /usr/local/apache/conf/httpd.conf
ServerRoot "/usr/local/apache"(制定服务器的根目录)
Listen 192.168.71.88:80(此处是更改默认的端口,可以写多个,应用于一块网卡绑定多个IP)
#Listen 80(表示所有IP均为80端口)
ServerName zhqmail.scut.edu.cn:80(域名)
DocumentRoot "/var/www/html"(设置存放网页的根目录)
<Directory />(全局权限设置)
Options FollowSymLinks
#AllowOverride None
AllowOverride all
Order deny,allow
#Deny from all
Allow from all
</Directory>
<Directory "/var/www/html">(网页根目录权限设置)
Options Indexes FollowSymLinks
Allow from all
</Directory>
<IfModule dir_module>(设置默认的启动文件,默认为index.html,可以个性化更改)
DirectoryIndex index.html
</IfModule>
3,startting and stopping the service
ln /usr/local/apache/bin/apchectl /etc/init.d/httpd
系统启动:/etc/init.d/httpd start
系统停止:/etc/init.d/httpd stop
作者: qingqiang 发布时间: 2008-11-24
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28