SlideShare una empresa de Scribd logo
1 de 37
Apache Web Server
      Instalación y Configuración




   MSc. Javier González Sánchez
                 javiergs@itesm.mx




        ITESM, campus Guadalajara
Introducción
1
     ¿cómo funciona el www?
     HTTP – el web y sus protocolos

2
     Historia del proyecto Apache
     ¿ que es Apache ?
     Arquitectura de Apache

3
     Instalación y configuración

4.
     Problemas y adiciones finales.
                                      M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
¿ cómo funciona el www ?

          El www se basa en el paradigma cliente / servidor.

                            transacción www

                 1. DNS
                  Lookup               DNS Server
           URL

                           2.   TCP connection
                           3.   HTTP request
                           4.   HTTP response
                                                                    Web Server

browser   Web Client
tracert
                                                    M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
HTTP – el web y sus protocolos
             protocolo, (elaborado por Tim Berners - Lee) en 1989
             protocolo a nivel de aplicación (dependiente de TCP/IP)

             El cliente (browser) elabora una petición (request)
             El servidor (web Server) responde la petición (response)

             soporta:
                 uso de URL’s (Uniform Resource Locator´s)
                 Internet media types (MIME types: RFC2045-RFC2049)

             i.e. acceso a diferentes tipos de informacion

             estándar:
                 HTTP 1.0 (RFC 1945), HTTP 1.1 (RFC 2616)


           http:// www.tallersur.com:80 / directory/file.html

browser   protocolo      server name or IP   puerto   directorio / archivo
telnet
                                                                   M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
HTTP (request / response)
                                          Simple client request
GET /index.html HTTP/1.1
Host: www.gda.ites.mx

HTTP/1.1 200 OK                                            Server reply
Date: Tue, 09 Jan 2001 10:49:14 GMT
Server: Apache/1.3.14 (Unix)
Last-Modified: Tue, 09 Jan 2001 01:11:02 GMT
ETag: "131e-a074-3a5a6526"
Accept-Ranges: bytes
Content-Length: 41076
Content-Type: text/html

<html>
…

</html>

                                               M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Códigos de respuesta

          Los códigos de estatus son números de tres dígitos
          agrupados como sigue:


              • 1xx - informational
              • 2xx - client request successful
                      200 - OK
              • 3xx - request redirected
              • 4xx - client errors (request incomplete)
                      403 - Forbidden
                      404 - Not found
              • 5xx - server errors
browser


                                                  M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Web server
proyecto Apache HTTP


objetivo
proporcionar un servidor open-source, seguro, eficiente y
extensible que proporcione servicios HTTP acorde a los
estándares del www.

Apache Group
   Organización no lucrativa
   Desarrollo de parches y módulos adicionales
   Aprobar e implementa parches y adiciones enviadas por
   desarrolladores externos al grupo.
   Prueba de nuevas versiones
   Documentar nuevas características



                                         M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
¿ que es Apache?

           Disponible de forma gratuita :
              Código fuente y objeto
              Para diferentes plataformas
              Basado en el server de NCSA (1995)

           Estadísticas
              El 60% de los servidores web en Internet son Apache o
              un derivado de Apache

           Totalmente configurable, muchas directivas...
           Módulos adicionales le proveen funcionalidad extra
           Apache is “A PAtCHy server”
           Excelente rendimiento y actualizaciones continuas
netscaft

 port80
                                                M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
A favor …

http://news.netcraft.com/archives/2005/10/index.html




                                                M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
En contra …

http://www.port80software.com/surveys/top1000webservers/




                                             M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Web server
Apache     HTTP
obtener
                 La Precompilada
                 El Código Fuente

              Instalar
                 Plataformas
                 Iniciar el Servidor
                 Detener el Servidor

              Configurar
                 conf/httpd.conf
                 Seguridad
                 Compatibilidad

instalación


                                       M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalación




M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Apache directorios


  cgi-bin/ - CGI scripts directory
  conf/ - configuration files for httpd server
  htdocs/ - main directory for documents
  logs/     - directory with log files
  other stuff (bin/, icons/, include/,proxy/, man/
  …)



   bin     cgi-bin   conf   htdocs libexec                logs

apachectl ab   httpd htpasswd
                                    M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
configuración

Choosing functionality
  Apache functionality is available through
  modules which are either built into or loaded
  into the server
  Apache reads its run-time configuration
  instructions from text files
  No GUI available
General rules
  case insensitive(exclude a file/directory names)
  one directive in per line
  extra whitespace is ignored
  comment lines begin with #
                                M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
configuración
How ? (It’s basic configuration)
   ServerType standalone
   Port 80
   User nobody
   Group nobody
   ServerAdmin your_e-mail_address
   ServerRoot /usr/local/apache
   ErrorLog /usr/local/apache/logs/error_log
   TransferLog /usr/local/apache/logs/access_log
   DocumentRoot /usr/local/apache/htdocs/
   UserDir public_html
   DirectoryIndex index.html
   ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/

More Directives :
   StartServers, Min/MaxSpareServers, MaxClients, …


                                             M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
En conclusión
Pros:

        • Precio (de libre uso, gratuito).
        • Desempeño y Robustez.
        • Solidez.
        • Seguridad.
        • Soporte para el protocolo HTTP 1.1.
        • Extensibilidad.
        • Rápido soporte vía grupo de noticias.




                                        M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
En conclusión

Contras:

     • No existe una versión para MAC.
     • La versión para WinNT es todavía débil (No
       posee aún el crecimiento en el desempeño
       obtenido en las versiones UNIX).
     • Carece de interfaces gráficas para facilitar las
       tareas de configuración y administración.
     • Un soporte técnico más extenso requiere de
       comprar el servicio a un tercero.




                                     M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Web server
Httpd.conf   Apache     HTTP
bitácoras

             servers logs access information in the file
             it is possible (and easy) to produce many kinds of
             activity reports from that data
             plenty of freeware log analyzers (webalizer, analog,…)
             Common Log Format (CLF)




211.52.197.57 - - [03/Aug/2000:21:57:26 +0900] "POST /cgi-bin/bbs HTTP/1.1" 200 3840


                      Date                          request                       status
    host ident        [day/month/year:hour:minute:second zone]
                 authuser                                                                     bytes

                                                               M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
virtual host

The term Virtual Host refers to the practice of maintaining
more than one server on one machine, as differentiated by
their apparent hostname.

NSPs and ISPs do this a lot

Allows additional Web presence without accompanying
hardware or software investment required

each of the virtual server may have totally different
content, configuration, separate log and error files, …

alternative is to run another server on a different port

part of basic server configuration (httpd.conf)
                                          M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
módulos apache

La arquitectura modular hace posible para
“cualquiera” añadir funciones al servidor


Existe una enorme cantidad de módulos
escritos para Apache (públicos y privados)


Es fácil añadir un modulo a Apache


                            M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
otros proyectos Apache

             o   Apache-SSL

             o   PHP Project

             o   Apache / Perl Integration Project

             o   Java-Apache Project / Jakarta Project

             o   Apache Graphical User Interface Project

             o   Apache Documentation Project

             o   XML-Apache Project

Apache.org   o   etc…
                                                         M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Web server
Y mas…   Httpd.conf   Apache     HTTP
referencias
Apache HTTP Server Project
http://www.apache.org/info.html

Apache API notes
http://www.apache.org/docs/misc/API.html

Netcraft Survey
http://www.netcraft.com

Apache Week
http://www.apacheweek.com/issues/00-02-18

Apache modules
http://www.apache.org/docs/mod/index.html

Apache directives
http://www.apache.org/docs/mod/directives.html
                                            M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
sitios de interés
 WWW consortium
http://www.w3c.org



About NCSA
http://www.ncsa.uiuc.edu/AboutUs/



Netcraft Survey for Apache
http://www.serverwatch.com/news/article.php/3073801



port 80 Survey for Apache
http://www.port80software.com/surveys/top1000webservers/archive/200301/



                                                  M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
problemas

Revisar el archivo error.log !

Revisar el FAQ Apache
http://www.apache.org/docs/misc/FAQ.html



Leer la documentación de Apache

Revisar la base de datos de reportes de
errores (bugs)
http://bugs.apache.org/



                                           M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
preguntas
      ¡gracias!
http://www.javiergs.com/

  javiergs@itesm.mx
preguntas




      ¡gracias!
http://www.javiergs.com/
   javiergs@itesm.mx
preguntas




      ¡gracias!
javiergs@itesm.mx

Más contenido relacionado

La actualidad más candente

Servicio FTP en Ubuntu
Servicio FTP en UbuntuServicio FTP en Ubuntu
Servicio FTP en UbuntuSergio Santos
 
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjb
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjbQue es un servidor proxy y los diferentes tipos que existencompletomasomnjjb
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjbChanCHIMAL
 
Instalacion de un servidor proxy
Instalacion de un servidor proxyInstalacion de un servidor proxy
Instalacion de un servidor proxyalfredoariasjimenez
 
Apache.http ftp-smtp
Apache.http ftp-smtpApache.http ftp-smtp
Apache.http ftp-smtpgh02
 
Servidor de autenticación con OpenLDAP en CentOS
Servidor de autenticación con OpenLDAP en CentOSServidor de autenticación con OpenLDAP en CentOS
Servidor de autenticación con OpenLDAP en CentOSKramer Garay Gómez
 
Introducció a les Aplicació Web
Introducció a les Aplicació WebIntroducció a les Aplicació Web
Introducció a les Aplicació WebCarlesMG57
 
SEVIDORES WEB 1 DE MARZO.docx
SEVIDORES WEB 1  DE MARZO.docxSEVIDORES WEB 1  DE MARZO.docx
SEVIDORES WEB 1 DE MARZO.docxASELALPEZ
 
Servicio apache gnu linux-centos ::: http://leymebamba.com
Servicio apache  gnu linux-centos  ::: http://leymebamba.comServicio apache  gnu linux-centos  ::: http://leymebamba.com
Servicio apache gnu linux-centos ::: http://leymebamba.com{|::::::. ELDAVAN .:::::::|}
 
Configuracion proxy Windows server 2008
Configuracion proxy Windows server 2008Configuracion proxy Windows server 2008
Configuracion proxy Windows server 2008teresi0101
 
breve historia www
breve historia wwwbreve historia www
breve historia wwwguest42bf3b0
 
Manual servidor proxy
Manual servidor proxyManual servidor proxy
Manual servidor proxyarjonagleydi
 

La actualidad más candente (20)

Protocol HTTP
Protocol HTTPProtocol HTTP
Protocol HTTP
 
Servicio FTP en Ubuntu
Servicio FTP en UbuntuServicio FTP en Ubuntu
Servicio FTP en Ubuntu
 
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjb
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjbQue es un servidor proxy y los diferentes tipos que existencompletomasomnjjb
Que es un servidor proxy y los diferentes tipos que existencompletomasomnjjb
 
Instalacion de un servidor proxy
Instalacion de un servidor proxyInstalacion de un servidor proxy
Instalacion de un servidor proxy
 
Apache.http ftp-smtp
Apache.http ftp-smtpApache.http ftp-smtp
Apache.http ftp-smtp
 
Apache
ApacheApache
Apache
 
Proxy
ProxyProxy
Proxy
 
Servidor de autenticación con OpenLDAP en CentOS
Servidor de autenticación con OpenLDAP en CentOSServidor de autenticación con OpenLDAP en CentOS
Servidor de autenticación con OpenLDAP en CentOS
 
Resumen Servidor Proxy
Resumen Servidor ProxyResumen Servidor Proxy
Resumen Servidor Proxy
 
Squid
Squid Squid
Squid
 
Squid
SquidSquid
Squid
 
Servidores Proxy protocolo HTTP
Servidores Proxy  protocolo HTTPServidores Proxy  protocolo HTTP
Servidores Proxy protocolo HTTP
 
Introducció a les Aplicació Web
Introducció a les Aplicació WebIntroducció a les Aplicació Web
Introducció a les Aplicació Web
 
File zilla y cliente ftp
File zilla y cliente ftpFile zilla y cliente ftp
File zilla y cliente ftp
 
SEVIDORES WEB 1 DE MARZO.docx
SEVIDORES WEB 1  DE MARZO.docxSEVIDORES WEB 1  DE MARZO.docx
SEVIDORES WEB 1 DE MARZO.docx
 
Cherokee
CherokeeCherokee
Cherokee
 
Servicio apache gnu linux-centos ::: http://leymebamba.com
Servicio apache  gnu linux-centos  ::: http://leymebamba.comServicio apache  gnu linux-centos  ::: http://leymebamba.com
Servicio apache gnu linux-centos ::: http://leymebamba.com
 
Configuracion proxy Windows server 2008
Configuracion proxy Windows server 2008Configuracion proxy Windows server 2008
Configuracion proxy Windows server 2008
 
breve historia www
breve historia wwwbreve historia www
breve historia www
 
Manual servidor proxy
Manual servidor proxyManual servidor proxy
Manual servidor proxy
 

Destacado

The San Diego LGBT Community Center
The San Diego LGBT Community CenterThe San Diego LGBT Community Center
The San Diego LGBT Community CenterSociologistTina
 
Tracking Objects To Detect Feature Dependencies
Tracking Objects To Detect Feature DependenciesTracking Objects To Detect Feature Dependencies
Tracking Objects To Detect Feature Dependencieslienhard
 
Wolko1- Afiches de cine
Wolko1- Afiches de cineWolko1- Afiches de cine
Wolko1- Afiches de cineguest0b0bd35
 
RCMSL Phenomenal July 2, 2009
RCMSL Phenomenal July 2, 2009RCMSL Phenomenal July 2, 2009
RCMSL Phenomenal July 2, 2009etalcomendras
 
Tax planning introduction fall 2012
Tax planning introduction fall 2012Tax planning introduction fall 2012
Tax planning introduction fall 2012dphil002
 
201103 emotional impacts on digital media
201103 emotional impacts on digital media201103 emotional impacts on digital media
201103 emotional impacts on digital mediaJavier Gonzalez-Sanchez
 
2013 cch basic principles ch04
2013 cch basic principles ch042013 cch basic principles ch04
2013 cch basic principles ch04dphil002
 
A73A CQWW 2012 Contest operation from the Desert of Qatar
A73A CQWW 2012 Contest operation from the Desert of QatarA73A CQWW 2012 Contest operation from the Desert of Qatar
A73A CQWW 2012 Contest operation from the Desert of QatarTobias Wellnitz
 
Sociale media en journalistiek
Sociale media en journalistiekSociale media en journalistiek
Sociale media en journalistiekBart Van Belle
 
Heirloom Travel: Wine Country - Wineries
Heirloom Travel: Wine Country - WineriesHeirloom Travel: Wine Country - Wineries
Heirloom Travel: Wine Country - WineriesIceMilk Aprons
 
Syst reninangiot pp cv aomi 02fev 2
Syst reninangiot pp cv   aomi 02fev 2Syst reninangiot pp cv   aomi 02fev 2
Syst reninangiot pp cv aomi 02fev 2sfa_angeiologie
 
RCMSL Phenomenal July 9, 2009
RCMSL Phenomenal July 9, 2009RCMSL Phenomenal July 9, 2009
RCMSL Phenomenal July 9, 2009etalcomendras
 

Destacado (20)

Sanghamitra Iyengar - Índia
Sanghamitra  Iyengar - ÍndiaSanghamitra  Iyengar - Índia
Sanghamitra Iyengar - Índia
 
The San Diego LGBT Community Center
The San Diego LGBT Community CenterThe San Diego LGBT Community Center
The San Diego LGBT Community Center
 
Tracking Objects To Detect Feature Dependencies
Tracking Objects To Detect Feature DependenciesTracking Objects To Detect Feature Dependencies
Tracking Objects To Detect Feature Dependencies
 
Wolko1- Afiches de cine
Wolko1- Afiches de cineWolko1- Afiches de cine
Wolko1- Afiches de cine
 
RCMSL Phenomenal July 2, 2009
RCMSL Phenomenal July 2, 2009RCMSL Phenomenal July 2, 2009
RCMSL Phenomenal July 2, 2009
 
Tax planning introduction fall 2012
Tax planning introduction fall 2012Tax planning introduction fall 2012
Tax planning introduction fall 2012
 
201103 emotional impacts on digital media
201103 emotional impacts on digital media201103 emotional impacts on digital media
201103 emotional impacts on digital media
 
2013 cch basic principles ch04
2013 cch basic principles ch042013 cch basic principles ch04
2013 cch basic principles ch04
 
A73A CQWW 2012 Contest operation from the Desert of Qatar
A73A CQWW 2012 Contest operation from the Desert of QatarA73A CQWW 2012 Contest operation from the Desert of Qatar
A73A CQWW 2012 Contest operation from the Desert of Qatar
 
Wedding Inspiration
Wedding InspirationWedding Inspiration
Wedding Inspiration
 
Jay Cross Vivo Versao Final Corrigida
Jay Cross Vivo Versao Final CorrigidaJay Cross Vivo Versao Final Corrigida
Jay Cross Vivo Versao Final Corrigida
 
201506 CSE340 Lecture 22
201506 CSE340 Lecture 22201506 CSE340 Lecture 22
201506 CSE340 Lecture 22
 
Sociale media en journalistiek
Sociale media en journalistiekSociale media en journalistiek
Sociale media en journalistiek
 
Heirloom Travel: Wine Country - Wineries
Heirloom Travel: Wine Country - WineriesHeirloom Travel: Wine Country - Wineries
Heirloom Travel: Wine Country - Wineries
 
Syst reninangiot pp cv aomi 02fev 2
Syst reninangiot pp cv   aomi 02fev 2Syst reninangiot pp cv   aomi 02fev 2
Syst reninangiot pp cv aomi 02fev 2
 
RCMSL Phenomenal July 9, 2009
RCMSL Phenomenal July 9, 2009RCMSL Phenomenal July 9, 2009
RCMSL Phenomenal July 9, 2009
 
201506 CSE340 Lecture 14
201506 CSE340 Lecture 14201506 CSE340 Lecture 14
201506 CSE340 Lecture 14
 
Contention
ContentionContention
Contention
 
201506 CSE340 Lecture 12
201506 CSE340 Lecture 12201506 CSE340 Lecture 12
201506 CSE340 Lecture 12
 
fugitive emission ball valve
fugitive emission ball valvefugitive emission ball valve
fugitive emission ball valve
 

Similar a 200310 - Apache Web Server

Sitic ii web 1.0
Sitic ii web 1.0Sitic ii web 1.0
Sitic ii web 1.0fteixido
 
Seguridad en Apache Web Server
Seguridad en Apache Web ServerSeguridad en Apache Web Server
Seguridad en Apache Web ServerChema Alonso
 
Sistemas Distribuidos basados en la Web
Sistemas Distribuidos basados en la WebSistemas Distribuidos basados en la Web
Sistemas Distribuidos basados en la WebTensor
 
Clase17(introduccion a la web)
Clase17(introduccion a la web)Clase17(introduccion a la web)
Clase17(introduccion a la web)Tensor
 
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011Desarrollos NEA
 
Webinar Gratuito "OWASP WebScarab"
Webinar Gratuito "OWASP WebScarab"Webinar Gratuito "OWASP WebScarab"
Webinar Gratuito "OWASP WebScarab"Alonso Caballero
 
Breve Historia De Www
Breve Historia De WwwBreve Historia De Www
Breve Historia De Wwwguestec587b
 
WebService y Reporting
WebService y ReportingWebService y Reporting
WebService y Reportinghvillarreal
 
Hacia La Web Sincrona
Hacia La Web SincronaHacia La Web Sincrona
Hacia La Web SincronaIrontec
 
El conocimiento frente a la comunicacin de datos
El conocimiento frente a la comunicacin de datosEl conocimiento frente a la comunicacin de datos
El conocimiento frente a la comunicacin de datosJhon Trujillo
 

Similar a 200310 - Apache Web Server (20)

Apli t1 ejr
Apli t1 ejrApli t1 ejr
Apli t1 ejr
 
Servidores, seguridad y autenticación
Servidores, seguridad y autenticaciónServidores, seguridad y autenticación
Servidores, seguridad y autenticación
 
Servidor web
Servidor webServidor web
Servidor web
 
Protocolo http
Protocolo httpProtocolo http
Protocolo http
 
Servidor web para linux
Servidor web para linuxServidor web para linux
Servidor web para linux
 
Fundamentos de la web
Fundamentos de la webFundamentos de la web
Fundamentos de la web
 
Sitic ii web 1.0
Sitic ii web 1.0Sitic ii web 1.0
Sitic ii web 1.0
 
Informatica
InformaticaInformatica
Informatica
 
Seguridad en Apache Web Server
Seguridad en Apache Web ServerSeguridad en Apache Web Server
Seguridad en Apache Web Server
 
Sistemas Distribuidos basados en la Web
Sistemas Distribuidos basados en la WebSistemas Distribuidos basados en la Web
Sistemas Distribuidos basados en la Web
 
Clase17(introduccion a la web)
Clase17(introduccion a la web)Clase17(introduccion a la web)
Clase17(introduccion a la web)
 
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011
Ajax reverse (Comet) con ASP.NET MVC - JUTI 2011
 
Webinar Gratuito "OWASP WebScarab"
Webinar Gratuito "OWASP WebScarab"Webinar Gratuito "OWASP WebScarab"
Webinar Gratuito "OWASP WebScarab"
 
Breve Historia De Www
Breve Historia De WwwBreve Historia De Www
Breve Historia De Www
 
WebService y Reporting
WebService y ReportingWebService y Reporting
WebService y Reporting
 
Hacia La Web Sincrona
Hacia La Web SincronaHacia La Web Sincrona
Hacia La Web Sincrona
 
Unidad 2
Unidad 2Unidad 2
Unidad 2
 
Tecnologias web
Tecnologias webTecnologias web
Tecnologias web
 
Servidor http(web)
Servidor http(web)Servidor http(web)
Servidor http(web)
 
El conocimiento frente a la comunicacin de datos
El conocimiento frente a la comunicacin de datosEl conocimiento frente a la comunicacin de datos
El conocimiento frente a la comunicacin de datos
 

Más de Javier Gonzalez-Sanchez (20)

201804 SER332 Lecture 01
201804 SER332 Lecture 01201804 SER332 Lecture 01
201804 SER332 Lecture 01
 
201801 SER332 Lecture 03
201801 SER332 Lecture 03201801 SER332 Lecture 03
201801 SER332 Lecture 03
 
201801 SER332 Lecture 04
201801 SER332 Lecture 04201801 SER332 Lecture 04
201801 SER332 Lecture 04
 
201801 SER332 Lecture 02
201801 SER332 Lecture 02201801 SER332 Lecture 02
201801 SER332 Lecture 02
 
201801 CSE240 Lecture 26
201801 CSE240 Lecture 26201801 CSE240 Lecture 26
201801 CSE240 Lecture 26
 
201801 CSE240 Lecture 25
201801 CSE240 Lecture 25201801 CSE240 Lecture 25
201801 CSE240 Lecture 25
 
201801 CSE240 Lecture 24
201801 CSE240 Lecture 24201801 CSE240 Lecture 24
201801 CSE240 Lecture 24
 
201801 CSE240 Lecture 23
201801 CSE240 Lecture 23201801 CSE240 Lecture 23
201801 CSE240 Lecture 23
 
201801 CSE240 Lecture 22
201801 CSE240 Lecture 22201801 CSE240 Lecture 22
201801 CSE240 Lecture 22
 
201801 CSE240 Lecture 21
201801 CSE240 Lecture 21201801 CSE240 Lecture 21
201801 CSE240 Lecture 21
 
201801 CSE240 Lecture 20
201801 CSE240 Lecture 20201801 CSE240 Lecture 20
201801 CSE240 Lecture 20
 
201801 CSE240 Lecture 19
201801 CSE240 Lecture 19201801 CSE240 Lecture 19
201801 CSE240 Lecture 19
 
201801 CSE240 Lecture 18
201801 CSE240 Lecture 18201801 CSE240 Lecture 18
201801 CSE240 Lecture 18
 
201801 CSE240 Lecture 17
201801 CSE240 Lecture 17201801 CSE240 Lecture 17
201801 CSE240 Lecture 17
 
201801 CSE240 Lecture 16
201801 CSE240 Lecture 16201801 CSE240 Lecture 16
201801 CSE240 Lecture 16
 
201801 CSE240 Lecture 15
201801 CSE240 Lecture 15201801 CSE240 Lecture 15
201801 CSE240 Lecture 15
 
201801 CSE240 Lecture 14
201801 CSE240 Lecture 14201801 CSE240 Lecture 14
201801 CSE240 Lecture 14
 
201801 CSE240 Lecture 13
201801 CSE240 Lecture 13201801 CSE240 Lecture 13
201801 CSE240 Lecture 13
 
201801 CSE240 Lecture 12
201801 CSE240 Lecture 12201801 CSE240 Lecture 12
201801 CSE240 Lecture 12
 
201801 CSE240 Lecture 11
201801 CSE240 Lecture 11201801 CSE240 Lecture 11
201801 CSE240 Lecture 11
 

Último

EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxEL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxMiguelAtencio10
 
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...JohnRamos830530
 
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfRefrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfvladimiroflores1
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITMaricarmen Sánchez Ruiz
 
Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21mariacbr99
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanamcerpam
 
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxPROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxAlan779941
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.FlorenciaCattelani
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveFagnerLisboa3
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estossgonzalezp1
 
Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfAnnimoUno1
 

Último (11)

EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxEL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
 
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
 
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfRefrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 
Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvana
 
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxPROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.
 
EPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial UninoveEPA-pdf resultado da prova presencial Uninove
EPA-pdf resultado da prova presencial Uninove
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estos
 
Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdf
 

200310 - Apache Web Server

  • 1. Apache Web Server Instalación y Configuración MSc. Javier González Sánchez javiergs@itesm.mx ITESM, campus Guadalajara
  • 2. Introducción 1 ¿cómo funciona el www? HTTP – el web y sus protocolos 2 Historia del proyecto Apache ¿ que es Apache ? Arquitectura de Apache 3 Instalación y configuración 4. Problemas y adiciones finales. M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 3. ¿ cómo funciona el www ? El www se basa en el paradigma cliente / servidor. transacción www 1. DNS Lookup DNS Server URL 2. TCP connection 3. HTTP request 4. HTTP response Web Server browser Web Client tracert M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 4. HTTP – el web y sus protocolos protocolo, (elaborado por Tim Berners - Lee) en 1989 protocolo a nivel de aplicación (dependiente de TCP/IP) El cliente (browser) elabora una petición (request) El servidor (web Server) responde la petición (response) soporta: uso de URL’s (Uniform Resource Locator´s) Internet media types (MIME types: RFC2045-RFC2049) i.e. acceso a diferentes tipos de informacion estándar: HTTP 1.0 (RFC 1945), HTTP 1.1 (RFC 2616) http:// www.tallersur.com:80 / directory/file.html browser protocolo server name or IP puerto directorio / archivo telnet M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 5. HTTP (request / response) Simple client request GET /index.html HTTP/1.1 Host: www.gda.ites.mx HTTP/1.1 200 OK Server reply Date: Tue, 09 Jan 2001 10:49:14 GMT Server: Apache/1.3.14 (Unix) Last-Modified: Tue, 09 Jan 2001 01:11:02 GMT ETag: "131e-a074-3a5a6526" Accept-Ranges: bytes Content-Length: 41076 Content-Type: text/html <html> … </html> M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 6. Códigos de respuesta Los códigos de estatus son números de tres dígitos agrupados como sigue: • 1xx - informational • 2xx - client request successful 200 - OK • 3xx - request redirected • 4xx - client errors (request incomplete) 403 - Forbidden 404 - Not found • 5xx - server errors browser M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 8. proyecto Apache HTTP objetivo proporcionar un servidor open-source, seguro, eficiente y extensible que proporcione servicios HTTP acorde a los estándares del www. Apache Group Organización no lucrativa Desarrollo de parches y módulos adicionales Aprobar e implementa parches y adiciones enviadas por desarrolladores externos al grupo. Prueba de nuevas versiones Documentar nuevas características M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 9. ¿ que es Apache? Disponible de forma gratuita : Código fuente y objeto Para diferentes plataformas Basado en el server de NCSA (1995) Estadísticas El 60% de los servidores web en Internet son Apache o un derivado de Apache Totalmente configurable, muchas directivas... Módulos adicionales le proveen funcionalidad extra Apache is “A PAtCHy server” Excelente rendimiento y actualizaciones continuas netscaft port80 M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 10. A favor … http://news.netcraft.com/archives/2005/10/index.html M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 11. En contra … http://www.port80software.com/surveys/top1000webservers/ M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 13. obtener La Precompilada El Código Fuente Instalar Plataformas Iniciar el Servidor Detener el Servidor Configurar conf/httpd.conf Seguridad Compatibilidad instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 14. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 15. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 16. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 17. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 18. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 19. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 20. Instalación M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 21. Apache directorios cgi-bin/ - CGI scripts directory conf/ - configuration files for httpd server htdocs/ - main directory for documents logs/ - directory with log files other stuff (bin/, icons/, include/,proxy/, man/ …) bin cgi-bin conf htdocs libexec logs apachectl ab httpd htpasswd M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 22. configuración Choosing functionality Apache functionality is available through modules which are either built into or loaded into the server Apache reads its run-time configuration instructions from text files No GUI available General rules case insensitive(exclude a file/directory names) one directive in per line extra whitespace is ignored comment lines begin with # M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 23. configuración How ? (It’s basic configuration) ServerType standalone Port 80 User nobody Group nobody ServerAdmin your_e-mail_address ServerRoot /usr/local/apache ErrorLog /usr/local/apache/logs/error_log TransferLog /usr/local/apache/logs/access_log DocumentRoot /usr/local/apache/htdocs/ UserDir public_html DirectoryIndex index.html ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/ More Directives : StartServers, Min/MaxSpareServers, MaxClients, … M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 24. En conclusión Pros: • Precio (de libre uso, gratuito). • Desempeño y Robustez. • Solidez. • Seguridad. • Soporte para el protocolo HTTP 1.1. • Extensibilidad. • Rápido soporte vía grupo de noticias. M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 25. En conclusión Contras: • No existe una versión para MAC. • La versión para WinNT es todavía débil (No posee aún el crecimiento en el desempeño obtenido en las versiones UNIX). • Carece de interfaces gráficas para facilitar las tareas de configuración y administración. • Un soporte técnico más extenso requiere de comprar el servicio a un tercero. M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 26. Web server Httpd.conf Apache HTTP
  • 27. bitácoras servers logs access information in the file it is possible (and easy) to produce many kinds of activity reports from that data plenty of freeware log analyzers (webalizer, analog,…) Common Log Format (CLF) 211.52.197.57 - - [03/Aug/2000:21:57:26 +0900] "POST /cgi-bin/bbs HTTP/1.1" 200 3840 Date request status host ident [day/month/year:hour:minute:second zone] authuser bytes M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 28. virtual host The term Virtual Host refers to the practice of maintaining more than one server on one machine, as differentiated by their apparent hostname. NSPs and ISPs do this a lot Allows additional Web presence without accompanying hardware or software investment required each of the virtual server may have totally different content, configuration, separate log and error files, … alternative is to run another server on a different port part of basic server configuration (httpd.conf) M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 29. módulos apache La arquitectura modular hace posible para “cualquiera” añadir funciones al servidor Existe una enorme cantidad de módulos escritos para Apache (públicos y privados) Es fácil añadir un modulo a Apache M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 30. otros proyectos Apache o Apache-SSL o PHP Project o Apache / Perl Integration Project o Java-Apache Project / Jakarta Project o Apache Graphical User Interface Project o Apache Documentation Project o XML-Apache Project Apache.org o etc… M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 31. Web server Y mas… Httpd.conf Apache HTTP
  • 32. referencias Apache HTTP Server Project http://www.apache.org/info.html Apache API notes http://www.apache.org/docs/misc/API.html Netcraft Survey http://www.netcraft.com Apache Week http://www.apacheweek.com/issues/00-02-18 Apache modules http://www.apache.org/docs/mod/index.html Apache directives http://www.apache.org/docs/mod/directives.html M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 33. sitios de interés WWW consortium http://www.w3c.org About NCSA http://www.ncsa.uiuc.edu/AboutUs/ Netcraft Survey for Apache http://www.serverwatch.com/news/article.php/3073801 port 80 Survey for Apache http://www.port80software.com/surveys/top1000webservers/archive/200301/ M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 34. problemas Revisar el archivo error.log ! Revisar el FAQ Apache http://www.apache.org/docs/misc/FAQ.html Leer la documentación de Apache Revisar la base de datos de reportes de errores (bugs) http://bugs.apache.org/ M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
  • 35. preguntas ¡gracias! http://www.javiergs.com/ javiergs@itesm.mx
  • 36. preguntas ¡gracias! http://www.javiergs.com/ javiergs@itesm.mx
  • 37. preguntas ¡gracias! javiergs@itesm.mx