好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Apache入门经验总结|设置-Apache教程

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

《 Apache入门经验总结 》由 第二电脑网 原创提供,转载请注明: http://www.002pc.com/master/College/Server/Apache/18007.html

查看更多关于Apache入门经验总结|设置-Apache教程的详细内容...

  阅读:62次