Apache
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Apache

on

  • 618 views

 

Statistics

Views

Total Views
618
Views on SlideShare
567
Embed Views
51

Actions

Likes
0
Downloads
5
Comments
0

2 Embeds 51

http://wd.alibaba-inc.com 38
http://fd.aliued.cn 13

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Apache Presentation Transcript

  • 1. Apache 管理配置
  • 2. Apache 介绍
    Apache
    Apache软件基金会(也就是Apache Software Foundation,简称为ASF),是专门为支持开源软件项目而办的一个非盈利性组织。在它所支持的 Apache 项目与子项目中,所发行的软件产品都遵循 Apache许可证(Apache License)。
    Apache HTTP server
    Apache HTTP Server(简称Apache)是Apache软件基金会的一个开放源码的网页服务器,可以在大多数计算机操作系统中运行,由于其跨平台和安全性[1]被广泛使用,是最流行的Web服务器端软件之一。它快速、可靠并且可通过简单的API扩充,将Perl/Python等解释器编译到服务器中。
  • 3. Apache projects
    HTTP Server AbderaActiveMQAnt APR Archiva Beehive Buildr Camel Cayenne Cocoon Commons Continuum CouchDB CXF DB Directory Excalibur Felix Forrest Geronimo Gump Hadoop
    Harmony HttpComponentsiBATIS Incubator Jackrabbit Jakarta James Labs Lenya LoggingLucene Maven Mina MyFaces ODE OFBizOpenEJBOpenJPAPDFBoxPerl POI Portals Qpid Roller Santuario
    ServiceMix Sling SpamAssassin STDCXX Struts Synapse Tapestry TCL Tiles Tomcat Turbine Tuscany Velocity Wicket Web Services XalanXerces XML XMLBeansXML Graphics Attic
  • 4. 关于Apache 安装及配置
    独立安装包
    http://httpd.apache.org/download.cgi
    一键安装包
    AppservXampp(linux-lampp)…
    1.配置文件较保持原状
    2.基本初始化配置,目录整齐
    3.独立封装配置文件
    4.配置合成mysql、php、mysql+phpmyadmin
  • 5. Appserv
  • 6. 基本配置
    端口
    Listen 80/8000
    Listen 10.20.136.*:80
    编码
    AddDefaultCharset GB2312
    错误提示
    ErrorDocument 403 “message” #禁止访问
    ErrorDocument 401 /noright.html #未认证
  • 7. 基本配置
    DocumentRoot “D:/AppServ/www”
  • 8. Vhost(虚拟主机)
    conf/httpd.conf
    LoadModulevhost_alias_module modules/mod_vhost_alias.so
    Include conf/extra/httpd-vhosts.conf
    conf/extra/httpd-vhost.conf
    <VirtualHost 10.20.136.129:80> #域名解析ip
    DocumentRoot “D:/Appserv/www/style“ #映射
    ServerName style.china.alibaba.com#主域
    ServerAlias dev.china.alibaba.com#别名
    </VirtualHost>
  • 9. 加密访问
    1.生成密码
    在cmd下运行D:AppServApache2.2binhtpasswd.exe
    打开认证
    <Directory “D:/Appserv/www/style"> <--预加密目录
    AuthType Basic #基本验证
    AuthName “Password Required” #弹出提醒框提示
    AuthUserFile “D:/Appserv/bin/.htpasswd” #服务器绝对路径
    Require valid-user
    </Directory>
  • 10. URL重写 rewriter
  • 11. shtml
    LoadModuleinclude_modulelibexec/apache2/mod_include.so
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    <Directory>
    Options Indexes FollowSymLinksIncludes
    </Directory>