服务器技术

 首页 > 服务器技术 > apache > Apache入门经验总结|设置-Apache教程

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"(设置存放网页的根目录)

      (全局权限设置)
    Options FollowSymLinks
    #AllowOverride None
    AllowOverride all
    Order deny,allow
    #Deny from all
    Allow from all
     

   (网页根目录权限设置)
     Options Indexes FollowSymLinks
     Allow from all
   

   (设置默认的启动文件,默认为index.html,可以个性化更改)
    DirectoryIndex index.html
    
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中KeepAlive配置的合理使用good|Ke...
在 apache 服务器中,KeepAlive 是一个布尔值,On 代表打开,Off 代表关闭,这个指令在其他众多的 HTTPD 服务器中都是存在的。   KeepAlive 配置指令决定当处理完用户发起的 HTTP 请求后是否立即关闭 TCP 连接,如果 KeepAlive 设置为 On,那么用户完成一次访问后,不会立即断开连接,如果还有请求,那么会继续在这一次 T...
Apache日志的设置|日志-Apache教程
错误日志的设置 ErrorLog logs/error_log #日志的保存位置 LogLevel warn #日志的级别 显示的格式日下: [Mon Oct 10 15:54:29 2005] [error] [client 192.168.10.22] access to /download/ failed, reason: user admin not allowed access 访问日志设置 日志的缺省格式有如下几种 LogFormat “%h %l %u %t “%r” %>s %b ...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……