| 论坛注册| 加入收藏 | 设为首页| RSS
Google
您当前的位置:首页 > 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 stopW2ALinux联盟
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目更新
栏目热门