Escolar Documentos
Profissional Documentos
Cultura Documentos
Instalacin y Configuracin
Introduccin
1
Instalacin y configuracin
4.
URL
DNS Server TCP connection HTTP request HTTP response Web Server
2. 3. 4.
browser tracert
Web Client
M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
protocolo, (elaborado por Tim Berners - Lee) en 1989 protocolo a nivel de aplicacin (dependiente de TCP/IP) El cliente (browser) elabora una peticin (request) El servidor (web Server) responde la peticin (response) soporta:
l l
uso de URLs (Uniform Resource Locators) Internet media types (MIME types: RFC2045-RFC2049)
protocolo
server name or IP
puerto
directorio / archivo
Server reply
Cdigos de respuesta
Los cdigos de estatus son nmeros de tres dgitos 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
proporcionar un servidor open-source, seguro, eficiente y extensible que proporcione servicios HTTP acorde a los estndares del www.
Apache Group
l l l l l
Organizacin no lucrativa Desarrollo de parches y mdulos adicionales Aprobar e implementa parches y adiciones enviadas por desarrolladores externos al grupo. Prueba de nuevas versiones Documentar nuevas caractersticas
que es Apache?
Disponible de forma gratuita : l Cdigo fuente y objeto l Para diferentes plataformas l Basado en el server de NCSA (1995) Estadsticas
l
netscaft port80
Totalmente configurable, muchas directivas... Mdulos adicionales le proveen funcionalidad extra Apache is A PAtCHy server Excelente rendimiento y actualizaciones continuas
A favor
http://news.netcraft.com/archives/2005/10/index.html
En contra
http://www.port80software.com/surveys/top1000webservers/
Apache
obtener
l l
Instalar
l l l
Configurar
l l l
instalacin
M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
Instalacin
Instalacin
Instalacin
Instalacin
Instalacin
Instalacin
Instalacin
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)
configuracin
Choosing functionality
Apache functionality is available through modules which are either built into or loaded into the server l Apache reads its run-time configuration instructions from text files l No GUI available
l
General rules
case insensitive(exclude a file/directory names) l one directive in per line l extra whitespace is ignored l comment lines begin with #
l
M.Cs. Javier Gonzalez Sanchez (javiergs@itesm.mx)
configuracin
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 :
l
En conclusin
Pros:
Precio (de libre uso, gratuito). Desempeo y Robustez. Solidez. Seguridad. Soporte para el protocolo HTTP 1.1. Extensibilidad. Rpido soporte va grupo de noticias.
En conclusin
Contras:
No existe una versin para MAC. La versin para WinNT es todava dbil (No posee an el crecimiento en el desempeo obtenido en las versiones UNIX). Carece de interfaces grficas para facilitar las tareas de configuracin y administracin. Un soporte tcnico ms extenso requiere de comprar el servicio a un tercero.
Httpd.conf
Apache
bitcoras
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)
request
[day/month/year:hour:minute:second zone]
status bytes
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)
mdulos apache
La arquitectura modular hace posible para cualquiera aadir funciones al servidor Existe una enorme cantidad de mdulos escritos para Apache (pblicos y privados)
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 inters
problemas
preguntas
gracias!
http://www.javiergs.com/ javiergs@itesm.mx
preguntas
gracias!
http://www.javiergs.com/ javiergs@itesm.mx
preguntas
gracias! javiergs@itesm.mx