Using Fastcgi with Apache HTTP Server 2.4

Total Page:16

File Type:pdf, Size:1020Kb

Using Fastcgi with Apache HTTP Server 2.4 Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI Using FastCGI with Apache HTTP Server 2.4 FastCGI with Apache httpd 2.4 Jeff Trawick Choosing mod fcgid http://emptyhammock.com/ mod proxy fcgi [email protected] mod authnz fcgi Other tools April 8, 2014 PHP Applications and FastCGI Future 1/97 Revisions Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI 2014-04-10 FastCGI with Apache httpd Add Require expr ... to /www/tools/ 2.4 configuration in More classic CGI configuration Choosing slide to resolve a potential security hole. Thank mod fcgid mod proxy fcgi you Eric Covener! mod authnz fcgi Other tools PHP Applications and FastCGI Future 2/97 Get these slides... Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI FastCGI with Apache httpd 2.4 http://emptyhammock.com/projects/info/slides.html Choosing mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 3/97 Table of Contents Using FastCGI with Apache HTTP Server 1 The world of FastCGI 2.4 Jeff Trawick 2 FastCGI with Apache httpd 2.4 The world of FastCGI 3 Choosing FastCGI with Apache httpd 4 mod fcgid 2.4 Choosing 5 mod proxy fcgi mod fcgid mod proxy fcgi 6 mod authnz fcgi mod authnz fcgi Other tools 7 Other tools PHP Applications 8 PHP Applications and FastCGI and FastCGI Future 9 Future 4/97 Introduction | Who am I? Using FastCGI with Apache HTTP Server 2.4 I've worked at Jeff Trawick several large corporations, for over two decades The world of FastCGI my own one-person company, Emptyhammock, for the FastCGI with last two years Apache httpd 2.4 I've worked on Choosing several products which were primarily based on or mod fcgid otherwise included Apache HTTP Server mod proxy fcgi lower-level networking products mod authnz fcgi web applications Other tools PHP I've developed or maintained some of the FastCGI Applications and FastCGI support in the Apache HTTP Server project. Future 5/97 Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI FastCGI with Apache httpd 2.4 The world of FastCGI Choosing mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 6/97 Implemented for most web servers. Implemented for most programming languages and a number of frameworks. FastCGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI A protocol for communicating between a web server and FastCGI with persistent application processes which can handle any of Apache httpd 2.4 several different phases of requests. Choosing mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 7/97 Implemented for most programming languages and a number of frameworks. FastCGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI A protocol for communicating between a web server and FastCGI with persistent application processes which can handle any of Apache httpd 2.4 several different phases of requests. Choosing Implemented for most web servers. mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 7/97 FastCGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick The world of FastCGI A protocol for communicating between a web server and FastCGI with persistent application processes which can handle any of Apache httpd 2.4 several different phases of requests. Choosing Implemented for most web servers. mod fcgid Implemented for most programming languages and a mod proxy fcgi mod authnz fcgi number of frameworks. Other tools PHP Applications and FastCGI Future 7/97 input stream for request body output stream for response headers and body output stream for log messages But binary encoded on a stream socket or pipe (Windows). FastCGI process waits repeatedly for new connections. Fast CGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick Inputs and outputs are similar to CGI: The world of FastCGI environment variables FastCGI with CONTENT LENGTH, SCRIPT NAME, etc. Apache httpd 2.4 Choosing mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 8/97 output stream for response headers and body output stream for log messages But binary encoded on a stream socket or pipe (Windows). FastCGI process waits repeatedly for new connections. Fast CGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick Inputs and outputs are similar to CGI: The world of FastCGI environment variables FastCGI with CONTENT LENGTH, SCRIPT NAME, etc. Apache httpd 2.4 input stream for request body Choosing mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 8/97 output stream for log messages But binary encoded on a stream socket or pipe (Windows). FastCGI process waits repeatedly for new connections. Fast CGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick Inputs and outputs are similar to CGI: The world of FastCGI environment variables FastCGI with CONTENT LENGTH, SCRIPT NAME, etc. Apache httpd 2.4 input stream for request body Choosing output stream for response headers and body mod fcgid mod proxy fcgi mod authnz fcgi Other tools PHP Applications and FastCGI Future 8/97 But binary encoded on a stream socket or pipe (Windows). FastCGI process waits repeatedly for new connections. Fast CGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick Inputs and outputs are similar to CGI: The world of FastCGI environment variables FastCGI with CONTENT LENGTH, SCRIPT NAME, etc. Apache httpd 2.4 input stream for request body Choosing output stream for response headers and body mod fcgid mod proxy fcgi output stream for log messages mod authnz fcgi Other tools PHP Applications and FastCGI Future 8/97 Fast CGI Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick Inputs and outputs are similar to CGI: The world of FastCGI environment variables FastCGI with CONTENT LENGTH, SCRIPT NAME, etc. Apache httpd 2.4 input stream for request body Choosing output stream for response headers and body mod fcgid mod proxy fcgi output stream for log messages mod authnz fcgi But binary encoded on a stream socket or pipe (Windows). Other tools FastCGI process waits repeatedly for new connections. PHP Applications and FastCGI Future 8/97 Raw CGI Using FastCGI with Apache HTTP Server 2.4 int main(int argc, char **argv) Jeff Trawick { The world of extern char **environ; FastCGI /* environ is {"CONTENT_LENGTH=105", FastCGI with "SCRIPT_NAME=/path/to/foo.fcgi", etc. } */ Apache httpd 2.4 const char *cl_str; Choosing mod fcgid if ((cl_str = getenv("CONTENT_LENGTH")) { read(FILENO_STDIN,,); /* request body */ mod proxy fcgi } mod authnz fcgi write(STDOUT_FILENO,,); /* response headers Other tools * and body */ PHP write(STDERR_FILENO,,); /* to web server log */ Applications and FastCGI } Future 9/97 Raw FastCGI Using FastCGI with Apache int main(int argc, char **argv) HTTP Server { 2.4 socket(); bind(); listen(); Jeff Trawick while (1) { The world of int cl = accept(); FastCGI read(cl, buf); FastCGI with |00000 0101000100080000 0001000000000000 ........ ........| Apache httpd 2.4 |00010 0104000100190000 090e485454505f48 ........ ..HTTP_H| Choosing |00020 4f53543132372e30 2e302e313a383038 OST127.0 .0.1:808| |00030 3101040001002000 000f0f485454505f 1..... ...HTTP_| mod fcgid |00040 555345525f414745 4e54417061636865 USER_AGE NTApache| mod proxy fcgi |00050 42656e63682f322e 3301040001001000 Bench/2. 3.......| mod authnz fcgi |00060 000b03485454505f 4143434550542a2f ...HTTP_ ACCEPT*/| Other tools write(cl, buf); PHP |00000 01060001041a0600 436f6e74656e742d ........ Content-| Applications and FastCGI |00010 547970653a207465 78742f706c61696e Type: te xt/plain| |00020 0a0a787878787878 7878787878787878 ..xxxxxx xxxxxxxx| Future |00030 7878787878787878 7878787878787878 xxxxxxxx xxxxxxxx| close(cl); } 10/97 } Raw FastCGI Using FastCGI with Apache HTTP Server How the datastream is defined: 2.4 Jeff Trawick version | 1 byte, always 1 The world of type | 1 byte, stuff like begin-request, abort-request, FastCGI params, stdin-data, stdout-data, etc. FastCGI with Apache httpd request id | 2 byte request identifier 2.4 Choosing content length | 2 byte length of bundled data mod fcgid padding length | 1 byte length of padding data mod proxy fcgi the data (0{64k bytes) mod authnz fcgi Other tools the padding (0{255 bytes) PHP Applications |0101000100080000 0001000000000000 ........ ........| and FastCGI |0104000100190000 090e485454505f48 ........ ..HTTP_H| Future 11/97 Programming support Using FastCGI with Apache HTTP Server 2.4 Jeff Trawick After all, nobody would want to reinvent that protocol. The world of FastCGI protocol libraries are available for use with Perl, FastCGI FastCGI with Python, Ruby, C, etc., often based on the C library from Apache httpd Open Market. 2.4 Choosing Code to the API to implement a FastCGI application. mod fcgid With some APIs, a properly coded FastCGI app will also mod proxy fcgi work as plain CGI. mod authnz fcgi PHP supports it transparently. Other tools Some frameworks support it transparently. PHP Applications and FastCGI Future 12/97 Dual-mode CGI/FastCGI Perl script: use CGI::Fast; while (my $q = CGI::Fast->new) { $mode = $q->param('mode'); print $q->header(-type => 'text/html'); print $q->start_html('hello, world'), $q->h1('hello, world'), $q->end_html; } But beware of unintentionally saved state. Perl example, moving from CGI to FastCGI Using FastCGI CGI-only Perl script: with Apache HTTP Server use CGI; 2.4 my $q = CGI->new; Jeff Trawick $mode = $q->param('mode'); print $q->header(-type => 'text/html'); The
Recommended publications
  • Download Issue
    Issue October 2019 | presented by www.jaxenter.com #70 The digital magazine for enterprise developers JavaThe JDK’s hidden 13 treasures i Jakarta EE 8 Let the games begin JDK 13 Why text blocks are worth the wait OpenJFX 13 JavaFX gets its own identity © Teguh Mujiono/Shutterstock.com, Pushkin/Shutterstock.com Illustrationen: Sun Microsystems Inc., S&S Media Editorial Let’s celebrate Java – three times! It’s that time again: A new Java version is here! Java 13 Last but not least: Jakarta EE, the follow-up project of was launched as planned, six months after the release Java EE, has announced its first release under the umbrella of of Java 12, and again it has some interesting features on the Eclipse Foundation. We got hold of the executive director board. In this issue of Jax Magazine, we’ve covered them of the Eclipse Foundation, Mike Milinkovich, and asked him for you in detail. about the current status of Jakarta EE. The good news doesn’t end there, as JavaFX 13 has also been released. The UI toolkit is no longer included in the JDK Happy reading, but has adjusted its new version releases to the new Java re- lease cadence. Find out what’s new here! Hartmut Schlosser Java 13 – a deep dive into the JDK’s 3 Kubernetes as a multi-cloud 17 new features operating system Falk Sippach Patrick Arnold Index Java 13 – why text blocks are worth the wait 6 Multi-tier deployment with Ansible 21 Tim Zöller Daniel Stender Jakarta EE 8 is sprinting towards an 9 Do we need a service mesh? 28 exciting future for enterprise Java Anton Weiss Thilo Frotscher
    [Show full text]
  • Interfacing Apache HTTP Server 2.4 with External Applications
    Interfacing Apache HTTP Server 2.4 with External Applications Jeff Trawick Interfacing Apache HTTP Server 2.4 with External Applications Jeff Trawick November 6, 2012 Who am I? Interfacing Apache HTTP Server 2.4 with External Applications Met Unix (in the form of Xenix) in 1985 Jeff Trawick Joined IBM in 1990 to work on network software for mainframes Moved to a different organization in 2000 to work on Apache httpd Later spent about 4 years at Sun/Oracle Got tired of being tired of being an employee of too-huge corporation so formed my own too-small company Currently working part-time, coding on other projects, and taking classes Overview Interfacing Apache HTTP Server 2.4 with External Applications Jeff Trawick Huge problem space, so simplify Perspective: \General purpose" web servers, not minimal application containers which implement HTTP \Applications:" Code that runs dynamically on the server during request processing to process input and generate output Possible web server interactions Interfacing Apache HTTP Server 2.4 with External Applications Jeff Trawick Native code plugin modules (uhh, assuming server is native code) Non-native code + language interpreter inside server (Lua, Perl, etc.) Arbitrary processes on the other side of a standard wire protocol like HTTP (proxy), CGI, FastCGI, etc. (Java and \all of the above") or private protocol Some hybrid such as mod fcgid mod fcgid as example hybrid Interfacing Apache HTTP Server 2.4 with External Applications Jeff Trawick Supports applications which implement a standard wire protocol, no restriction on implementation mechanism Has extensive support for managing the application[+interpreter] processes so that the management of the application processes is well-integrated with the web server Contrast with mod proxy fcgi (pure FastCGI, no process management) or mod php (no processes/threads other than those of web server).
    [Show full text]
  • Next Generation Web Scanning Presentation
    Next generation web scanning New Zealand: A case study First presented at KIWICON III 2009 By Andrew Horton aka urbanadventurer NZ Web Recon Goal: To scan all of New Zealand's web-space to see what's there. Requirements: – Targets – Scanning – Analysis Sounds easy, right? urbanadventurer (Andrew Horton) www.morningstarsecurity.com Targets urbanadventurer (Andrew Horton) www.morningstarsecurity.com Targets What does 'NZ web-space' mean? It could mean: •Geographically within NZ regardless of the TLD •The .nz TLD hosted anywhere •All of the above For this scan it means, IPs geographically within NZ urbanadventurer (Andrew Horton) www.morningstarsecurity.com Finding Targets We need creative methods to find targets urbanadventurer (Andrew Horton) www.morningstarsecurity.com DNS Zone Transfer urbanadventurer (Andrew Horton) www.morningstarsecurity.com Find IP addresses on IRC and by resolving lots of NZ websites 58.*.*.* 60.*.*.* 65.*.*.* 91.*.*.* 110.*.*.* 111.*.*.* 113.*.*.* 114.*.*.* 115.*.*.* 116.*.*.* 117.*.*.* 118.*.*.* 119.*.*.* 120.*.*.* 121.*.*.* 122.*.*.* 123.*.*.* 124.*.*.* 125.*.*.* 130.*.*.* 131.*.*.* 132.*.*.* 138.*.*.* 139.*.*.* 143.*.*.* 144.*.*.* 146.*.*.* 150.*.*.* 153.*.*.* 156.*.*.* 161.*.*.* 162.*.*.* 163.*.*.* 165.*.*.* 166.*.*.* 167.*.*.* 192.*.*.* 198.*.*.* 202.*.*.* 203.*.*.* 210.*.*.* 218.*.*.* 219.*.*.* 222.*.*.* 729,580,500 IPs. More than we want to try. urbanadventurer (Andrew Horton) www.morningstarsecurity.com IP address blocks in the IANA IPv4 Address Space Registry Prefix Designation Date Whois Status [1] -----
    [Show full text]
  • Load Balancing for Heterogeneous Web Servers
    Load Balancing for Heterogeneous Web Servers Adam Pi´orkowski1, Aleksander Kempny2, Adrian Hajduk1, and Jacek Strzelczyk1 1 Department of Geoinfomatics and Applied Computer Science, AGH University of Science and Technology, Cracow, Poland {adam.piorkowski,jacek.strzelczyk}@agh.edu.pl http://www.agh.edu.pl 2 Adult Congenital and Valvular Heart Disease Center University of Muenster, Muenster, Germany [email protected] http://www.ukmuenster.de Abstract. A load balancing issue for heterogeneous web servers is de- scribed in this article. The review of algorithms and solutions is shown. The selected Internet service for on-line echocardiography training is presented. The independence of simultaneous requests for this server is proved. Results of experimental tests are presented3. Key words: load balancing, scalability, web server, minimum response time, throughput, on-line simulator 1 Introduction Modern web servers can handle millions of queries, although the performance of a single node is limited. Performance can be continuously increased, if the services are designed so that they can be scaled. The concept of scalability is closely related to load balancing. This technique has been used since the beginning of the first distributed systems, including rich client architecture. Most of the complex web systems use load balancing to improve performance, availability and security [1{4]. 2 Load Balancing in Cluster of web servers Clustering of web servers is a method of constructing scalable Internet services. The basic idea behind the construction of such a service is to set the relay server 3 This is the accepted version of: Piorkowski, A., Kempny, A., Hajduk, A., Strzelczyk, J.: Load Balancing for Heterogeneous Web Servers.
    [Show full text]
  • AN OPEN SOURCE WEB SOLUTION Lighttpd Web Server and Chip Multithreading Technology
    AN OPEN SOURCE WEB SOLUTION Lighttpd Web Server and Chip Multithreading Technology Reference Implementation Amanda Waite, Sun Microsystems Sun BluePrints™ Online — September 2008 Part No 820-5633-10 Revision 1.0, 9/23/08 Sun Microsystems, Inc. Table of Contents Reference Implementation . 1 The Web 2.0 Kit. 2 Hardware and Software Configuration . 3 Workload Test Descriptions. 4 The Faban Harness and Driver Framework . 4 Performance Tuning . 5 Opcode Caching . 5 Temporary Files . 9 Sizing the Number of Lighttpd Web Server and PHP Processes . 9 Database Configuration . 12 Lighttpd Web Server Configuration. 13 Memcached . 13 Network Interface Card Interrupt Handling . 13 Nagle’s Algorithm. 16 Network I/O . 17 Best Practices for Deployment . 18 Conclusion . 20 About the Author . 20 References . 20 Ordering Sun Documents . 21 Accessing Sun Documentation Online . 21 1 An Open Source Web Solution Sun Microsystems, Inc. An Open Source Web Solution With more users interacting, working, purchasing, and communicating over the network than ever before, Web 2.0 infrastructure is taking center stage in many organizations. Demand is rising, and companies are looking for ways to tackle the performance and scalability needs placed on Web infrastructure without raising IT operational expenses. Today companies are turning to efficient, high-performance, open source solutions as a way to decrease acquisition, licensing, and other ongoing costs and stay within budget constraints. The combination of open source Lighttpd Web server software and Sun servers with CoolThreads™ technology provides a scalable, high-performance, and cost-effective solution for Web environments. This Sun BluePrints™ article describes a reference implementation based on the Lighttpd Web server software and Sun SPARC® Enterprise T5120 servers, and explores its performance and scalability when running dynamic workloads.
    [Show full text]
  • GNU/Linux Magazine Hors-Série N°66 Apache Introduction
    LES GUIDES DE sur les origines d Ce documntslapriéxvj-g(@h.)26013à:5 Tout ce qu LE GUIDE COMPLET POUR METTRE EN PLACE ET BIEN CONFIGURER VOTRE SERVEUR WEB APACH France METRO : 12.90 et sur ses principales Introduction fonctionnalités il faut savoir Apache CH : 18,00 CHF Installation et con Installer son premier BEL/PORT.CONT : 13,90 serveur et choisir le mécanisme d plus adapté authenti HORS-SÉRIE guration ���� cation le DOM TOM : 13,90 Programmer pour le Web PHP, Python, Perl et Ruby : quelques bases pour bien programmer avec les langages du Web CAN : 18,00 $ cad Aller plus loin MAR : 130 MAD Des éléments de con pour des besoins plus spéci (LDAP, chi guration avancée ques L 15066 ff Édité par Les Éditions Diamond Éditions Les par Édité rement, ...) www.ed-diamond.com -66H F: Tutoriels Des pas-à-pas 12,90 pour passer E rapidement à la pratique € -RD Ce documntslapriéxvj-g(@h.)26013à:5 2 GNU/LiNUx maGaziNeHors-série N°66 : apacHe Impression : Service abonnement: Responsable publicité: Conception graphique: Remerciements Secrétaire derédaction Rédacteur enchef: Directeur depublication: Sites : Service commercial: E-mail : Tél. : est éditépar GNU/Linux MagazineHors-Série Éditions Diamond. rédigés parlesmembresdel'équiperédactionnelledes Les articlesnonsignéscontenusdanscenuméroontété respectif. droit ayant leur de propriété sont la dans le magazine les représentés logos Tous respectif. citées dans ce numéro sont déposées par les sans aucun marques Toutes d’information, but publicitaire. leur propriétaire figurant dans d’adresses les et prix pages de sont rédactionnelles indications données Les à renvoyés. titre ni rendus, ni sont GNU/Linux Magazine France Hors-série, publiés ou non, ne particulier, les manuscrits, photos accord écrit et de la société Les éditions Diamond.
    [Show full text]
  • Vasili Korol
    Vasili Korol Senior Software Developer Odense, Denmark Age: 35 mob.: +45 20 68 50 23 Married, have son (born 2010) e-mail: [email protected] ​ Personal Statement ⚬ Strong IT skills (16+ years of versatile experience) ⚬ Background in physics research ⚬ Work effectively both as team member and leader ⚬ Enthusiastic and committed ⚬ Spoken languages: Russian (native), English (fluent), Danish (Prøve i Dansk 3 / level B2) ​ ​ ​ ​ Education 2006–2008: Master’s degree (with distinction) in applied physics. ​ 2002–2006: Bachelor’s degree (with distinction) in applied physics. Under- to postgraduate student at St. Petersburg State Polytechnical University, Faculty of Physics and Technology, Dept. of Cosmic Physics. The thesis “Search for possible space-time variations of the fine-structure constant and isotopic shifts” (a supervisor Prof. ​ M.G. Kozlov). ​ 1992-2002: School education in St. Petersburg, Russia and Belfast, UK (in 1993). Professional Career 2015 – Feb 2021: Software developer in the QuantBio research group at the University of ​ ​ ​ ​ Southern Denmark (SDU), Institute of Physics, Chemistry and Pharmacy (HPC section). I am the principal developer of VIKING, a service providing a web interface for configuring ​ ​ ​ and running scientific computational tasks on supercomputers. I designed the software architecture, developed the system core and coordinated the work of several developers. 2014 – 2015: Lead programmer (Perl) at Internet Projects LLC, russian informational portals subscribe.ru and sendsay.ru (St. Petersburg, Russia). ​ ​ ​ Worked with a team of developers on projects targeted at developing an API for news aggregation and content processing services. This involved integration with various online platforms (Facebook, Twitter, Vkontakte, LiveJournal, Google Analytics), web scraping and designing instruments for user publications at the portals and beyond.
    [Show full text]
  • You Are Hacked : AJAX Security Essentials for Enterprise Java
    You Are Hacked /: AJAX Security Essentials for Enterprise Java™ Technology Developers Karthik Shyamsunder James Gould Principal Engineer Principal Engineer VeriSign, Inc. VeriSign, Inc. TS-6014 2007 JavaOneSM Conference | Session TS-6014 | Speaker Qualifications • Karthik Shyamsunder • Principal Engineer, VeriSign, Inc. • Adjunct Faculty at Johns Hopkins University • James Gould • Principal Engineer, VeriSign, Inc. • Application Architect for VeriSign Naming Services 2 2007 JavaOneSM Conference | Session TS-6014 | Overall Presentation Goal What will you learn? 1. Understand the AJAX security model. 2. Identify the various threats to your AJAX web applications. 3. Learn what you can do to protect your application from these threats. 2007 JavaOneSM Conference | Session TS-6014 | Agenda Internet Threat Model Browser Security Model Vulnerabilities, Attacks, and Countermeasures Secure Software-Development Process Summary Q&A 4 2007 JavaOneSM Conference | Session TS-6014 | Agenda Internet Threat Model Browser Security Model Vulnerabilities, Attacks, and Countermeasures Secure Software-Development Process Summary Q&A 2007 JavaOneSM Conference | Session TS-6014 | 2007 JavaOneSM Conference | Session TS-6014 | The Problem Is Real • Cyber crimes and incidents are on the rise • 3 out of 4 business web sites are vulnerable to attack (Gartner) • 75% of the hacks occur at the application level (Gartner) Source: Gartner 2007 JavaOneSM Conference | Session TS-6014 | Architecture of Traditional Web Applications • Browser—A thin client Backend Processes
    [Show full text]
  • Scripts.Mit.Edu
    Services Backend Further Info scripts.mit.edu Quentin Smith [email protected] Student Information Processing Board October 29, 2019 Quentin Smith [email protected] scripts.mit.edu 2 Backend AFS suEXEC Kerberos LDAP Apache modules LVS Ansible 3 Further Info Services Backend Further Info Outline 1 Services Web Mail Cron (\Shortjobs") SQL Version control Quentin Smith [email protected] scripts.mit.edu 3 Further Info Services Backend Further Info Outline 1 Services Web Mail Cron (\Shortjobs") SQL Version control 2 Backend AFS suEXEC Kerberos LDAP Apache modules LVS Ansible Quentin Smith [email protected] scripts.mit.edu Services Backend Further Info Outline 1 Services Web Mail Cron (\Shortjobs") SQL Version control 2 Backend AFS suEXEC Kerberos LDAP Apache modules LVS Ansible 3 Further Info Quentin Smith [email protected] scripts.mit.edu Web Services Mail Backend Cron (\Shortjobs") Further Info SQL Version control Outline 1 Services Web Mail Cron (\Shortjobs") SQL Version control 2 Backend AFS suEXEC Kerberos LDAP Apache modules LVS Ansible 3 Further Info Quentin Smith [email protected] scripts.mit.edu suEXEC|allows Apache to spawn a process as the user. even for static content! Web Services Mail Backend Cron (\Shortjobs") Further Info SQL Version control Apache Everyone wants Apache Apache's default configuration isn't safe for scripting Scripting requires code execution|mod php, mod perl, mod python, mod wsgi Apache normally runs everything as apache/nobody How to secure? Quentin Smith [email protected] scripts.mit.edu Web Services Mail Backend Cron (\Shortjobs") Further Info SQL Version control Apache Everyone wants Apache Apache's default configuration isn't safe for scripting Scripting requires code execution|mod php, mod perl, mod python, mod wsgi Apache normally runs everything as apache/nobody How to secure? suEXEC|allows Apache to spawn a process as the user.
    [Show full text]
  • NGINX Modules Reference
    Nginx, Inc. NGINX Plus Reference Guide NGINX Plus - release 11, based on 1.11.5 core October 19, 2016 Copyright Notice © 2012-2016 Nginx, Inc. All rights reserved. NGINX, NGINX Plus and any Nginx, Inc. product or service name or logo used herein are trademarks of Nginx, Inc. All other trademarks used herein belong to their respective owners. The trademarks and logos displayed herein may not be used without the prior written consent of Nginx, Inc. or their respective owners. This documentation is provided \AS IS" and is subject to change without notice and should not be interpreted as a commitment by Nginx, Inc. This documentation may not be copied, modified or distributed without authorization of Nginx, Inc. and may be used only in connection with Nginx, Inc. products and services. Nginx, Inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in this documentation. 1 Preface About NGINX NGINX® (\engine x") is a high performance, high concurrency web server excelling at large scale content delivery, web acceleration and protecting application containers. Its precise integration with modern operating systems allows unprecedented levels of efficiency even when running on commodity hardware. Nginx, Inc. develops and maintains NGINX open source distribution, and offers commercial support and professional services for NGINX. About NGINX Plus • Offers additional features on top of the free open source NGINX version. • Prepared, tested and supported by NGINX core engineering team led by the original author Igor Sysoev. For more information • Find more details about NGINX products and support at https://www.nginx.com/. • For online NGINX documentation visit http://nginx.org/en/docs.
    [Show full text]
  • Polyglot Programming in Applications Used for Genetic Data Analysis
    Hindawi Publishing Corporation BioMed Research International Volume 2014, Article ID 253013, 7 pages http://dx.doi.org/10.1155/2014/253013 Research Article Polyglot Programming in Applications Used for Genetic Data Analysis Robert M. Nowak InstituteofElectronicSystems,WarsawUniversityofTechnology,Nowowiejska15/19,00-665Warsaw,Poland Correspondence should be addressed to Robert M. Nowak; [email protected] Received 30 May 2014; Revised 22 July 2014; Accepted 31 July 2014; Published 14 August 2014 Academic Editor: Brian Oliver Copyright © 2014 Robert M. Nowak. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Applications used for the analysis of genetic data process large volumes of data with complex algorithms. High performance, flexibility, and a user interface with a web browser are required by these solutions, which can be achieved by using multiple programming languages. In this study, I developed a freely available framework for building software to analyze genetic data, which uses C++, Python, JavaScript, and several libraries. This system was used to build a number of genetic data processing applications and it reduced the time and costs of development. 1. Background facilitate an understanding of the biological meanings of the sequence, that is, its function and/or its structure. The number of computer programs for the analysis of Thelargenumberofpossiblecandidatesolutionsdur- geneticdataisincreasingsignificantly,butitstillneedstobe ing the analysis of genetic data means that the employed improved greatly because of the importance of result analysis algorithms must be selected carefully [2]. Exhaustive search with appropriate methods and the exponential growth in the algorithms must be supported by heuristics based on biologi- volume of genetic data.
    [Show full text]
  • Uwsgi Documentation Release 2.0
    uWSGI Documentation Release 2.0 uWSGI Jun 17, 2020 Contents 1 Included components (updated to latest stable release)3 2 Quickstarts 5 3 Table of Contents 33 4 Tutorials 303 5 Articles 343 6 uWSGI Subsystems 375 7 Scaling with uWSGI 457 8 Securing uWSGI 485 9 Keeping an eye on your apps 503 10 Async and loop engines 511 11 Web Server support 525 12 Language support 541 13 Other plugins 629 14 Broken/deprecated features 633 15 Release Notes 643 16 Contact 741 17 Commercial support 743 18 Donate 745 19 Sponsors 747 20 Indices and tables 749 i Python Module Index 751 Index 753 ii uWSGI Documentation, Release 2.0 The uWSGI project aims at developing a full stack for building hosting services. Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style. Thanks to its pluggable architecture it can be extended to support more platforms and languages. Currently, you can write plugins in C, C++ and Objective-C. The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project. Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules fol- lowed). Contents 1 uWSGI Documentation, Release 2.0 2 Contents CHAPTER 1 Included components (updated to latest stable release) The Core (implements configuration, processes management, sockets creation, monitoring, logging, shared memory areas, ipc, cluster membership and the uWSGI Subscription Server) Request plugins (implement application server interfaces for various languages and platforms: WSGI, PSGI, Rack, Lua WSAPI, CGI, PHP, Go .
    [Show full text]