登陆论坛
|
论坛注册
|
加入收藏
|
设为首页
|
RSS
首页
Linux频道
软件下载
开发语言
技术论坛
嵌入式频道
|
安装与配置
|
上网与多媒体
|
使用与技巧
|
输入您的搜索字词
提交搜索表单
您当前的位置:
首页
>
Linux频道
>
Linux入门与提高
>
安装与配置
Apache入门经验总结
时间:2006-07-07 20:20:03 来源:Linux联盟收集 作者:
Linux联盟收集
Apache HTTPd 使用记录
W2ALinux联盟
W2ALinux联盟
1,Download the software: httpd-2.2.0.tar.gz
W2ALinux联盟
http://httpd.apache.org/download.cgi
W2ALinux联盟
2,Compiling and Installing
W2ALinux联盟
1)extract:tar -zxvf httpd-2.2.0.tar.gz
W2ALinux联盟
2)./configure --prefix=/usr/local/apache ----enable-rewrite=shared ----enable-speling=shared
W2ALinux联盟
3)make
W2ALinux联盟
4)make install
W2ALinux联盟
5)customize---vi /usr/local/apache/conf/httpd.conf
W2ALinux联盟
ServerRoot "/usr/local/apache"(制定服务器的根目录)
W2ALinux联盟
W2ALinux联盟
Listen 192.168.71.88:80(此处是更改默认的端口,可以写多个,应用于一块网卡绑定多个IP)
W2ALinux联盟
#Listen 80(表示所有IP均为80端口)
W2ALinux联盟
W2ALinux联盟
ServerName zhqmail.scut.edu.cn:80(域名)
W2ALinux联盟
W2ALinux联盟
DocumentRoot "/var/www/html"(设置存放网页的根目录)
W2ALinux联盟
W2ALinux联盟
<Directory />(全局权限设置)
W2ALinux联盟
Options FollowSymLinks
W2ALinux联盟
#AllowOverride None
W2ALinux联盟
AllowOverride all
W2ALinux联盟
Order deny,allow
W2ALinux联盟
#Deny from all
W2ALinux联盟
Allow from all
W2ALinux联盟
</Directory>
W2ALinux联盟
W2ALinux联盟
<Directory "/var/www/html">(网页根目录权限设置)
W2ALinux联盟
Options Indexes FollowSymLinks
W2ALinux联盟
Allow from all
W2ALinux联盟
</Directory>
W2ALinux联盟
W2ALinux联盟
<IfModule dir_module>(设置默认的启动文件,默认为index.html,可以个性化更改)
W2ALinux联盟
DirectoryIndex index.html
W2ALinux联盟
</IfModule>
W2ALinux联盟
3,startting and stopping the service
W2ALinux联盟
W2ALinux联盟
ln /usr/local/apache/bin/apchectl /etc/init.d/httpd
W2ALinux联盟
系统启动:/etc/init.d/httpd start
W2ALinux联盟
系统停止:/etc/init.d/httpd stop
W2ALinux联盟
来顶一下
返回首页
发表评论
共有
条评论
用户名:
密码:
验证码:
匿名发表
相关文章
Java入门:J2SE过程中的30个基本
Oracle RMAN快速入门指南
rman总结
iptables 入门
安装经验:Thinkpad上安装Ubuntu
Linux 组网入门
一种解读linux内核源码的入门方法
Shell 编程入门:Linux 解释器原
Linux动态链接库(标准对象)编程入
Fedora下声卡驱动全功略(入门篇
栏目更新
栏目热门
站内搜索:
Linux频道
下载频道
图库
商品
嵌入式频道
高级搜索
网站首页
|
关于我们
|
服务条款
|
广告服务
|
联系我们
|
网站大全
|
免责声明
|
返回顶部
Copyright © 2007-2008 xxlinux.com, All rights reserved.
Powered by linux联盟
京ICP备05012402号