Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Apache

580 views

Published on

Published in: Design, Technology
  • Be the first to comment

  • Be the first to like this

Apache

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

×