Stats of Web Server types

Similar documents
A PAtCHy server: developed by the Apache group formed 2/95 around by a number of people who provided patch files for NCSA httpd 1.3 by Rob McCool.

Apache + PHP + MySQL. bdnog November 2017 Dhaka, Bangladesh

GateDefender Performa updates from a local Web server

Exinda How To Guide: SSL Acceleration. Exinda ExOS Version Exinda Networks, Inc.

Linux Network Administration. Apache Web Server COMP1071 Summer 2017

Public-Key Infrastructure (PKI) Lab

app = web.application(urls, globals()) class hello: def GET(self, name): if not name: name = 'World' return 'Hello, ' + name + '!' if name == " main "

LAB :: Secure HTTP traffic using Secure Sockets Layer (SSL) Certificate

شرکت توسعه ارتباطات پردیس پارس. owncloud. The last file sharing platform you'll ever need

DAY 2! Logs, Aliases, Redirects, Rewrites, and More! Oh My! Thursday, November 8, 12

We want to install putty, an ssh client on the laptops. In the web browser goto:

2. Installing OpenBiblio 1.0 on a Windows computer

Exercises Basics of Web Security Experiential Learning Workshop

CherryPy on Apache2 with mod_python

Setting Up PHPlist (Open-Source Newsletter Manager)

LAMP Stack with VirtualHosts On Centos 6.x

Practical Exercise: Smartcard-based authentication in HTTP

Observium Enable your new virtual host 4

The first command should show your short hostname, and the second should show your fully qualified domain name (FQDN).

ViMP 2.0. Installation Guide. Verfasser: ViMP GmbH

Apache MySQL PHP PHPAdmin Install

datapusher Documentation

Apache Security with SSL Using FreeBSD

MODEM on HP-UX. Guy Van Sanden.

Twiki Installation Notes. Ned Brush 4/13/06. Everything is left as is (default settings) unless specified below. Distribution: RHEL 4

Configuring SSL (Port 443) for SSB (HTTP & WebCache) and INB (HTTP Only)

SETTING UP 3 WORDPRESS SITES ON APACHE AND UBUNTU BY RAMI

A Brief Tour of Apache

Installing MediaWiki using VirtualBox

LET S ENCRYPT WITH PYTHON WEB APPS. Joe Jasinski Imaginary Landscape

CA Nimsoft Unified Management Portal

Setting up the Apache Web Server

Bitnami Dolibarr for Huawei Enterprise Cloud

Setting up VPS on Ovh public cloud and installing lamp server on Ubuntu instance

SSL, Credit Card Transactions. CS174 Chris Pollett Nov. 5, 2007.

The WebGUI Runtime Environment. Roy Johnson Plain Black Corporation

Bitnami Coppermine for Huawei Enterprise Cloud

OptiRain Open 2 Installation Guide for LInux. This guide provides general instructions for installing OptiRain Open 2 on a Linux based server.

Installing LAMP on Ubuntu and (Lucid Lynx, Maverick Meerkat)

Certificate Properties File Realm

Cryptography. Basic Concept and Applications. Chung-Yi Chi Jun. 26, 2010

WA2572 Introduction to Responsive Web Development for Mac. Classroom Setup Guide. Web Age Solutions Inc.

Linux Systems Security. Logging and Network Monitoring NETS1028 Fall 2016

Tungsten Dashboard for Clustering. Eric M. Stone, COO

Bitnami Piwik for Huawei Enterprise Cloud

[UNIT 1 <Continued>]: <Understanding Apache>

More Security, SSL, Credit Card Transactions. CS174 Chris Pollett Nov. 10, 2008.

Public-key Infrastructure

Bitnami Pimcore for Huawei Enterprise Cloud

Setting up a LAMP server

Installing Open Project on Ubuntu AWS with Apache and Postgesql

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

Mac OS X Server Web Technologies Administration Version 10.6 Snow Leopard

Servers for Hackers. Server Administration for Programmers. Chris Fidao. This book is for sale at

Below are the steps to install Orangescrum Self Hosted version of Cloud Edition in Ubuntu Server Last Updated: OCT 18, 2018

MassTransit 6.0 Enterprise Web Configuration For Windows 2008 Server

1CRM FINANCE QB GUIDE. A Comprehensive Guide to Implementing 1CRM Finance for QuickBooks

MISP2 installation and configuration guide. Version 2.12

Kollaborate Server. Installation Guide

Encryption and Web Server Configuration

Install some base packages. I recommend following this guide as root on a new VPS or using sudo su, it will make running setup just a touch easier.

Configuring SSL for EPM /4 Products (Cont )

Step 1 - Install Apache and PostgreSQL

[ Due: N.A ] [ Points: PRICELESS ] [ Date: 2/9/2016] [ Goings, Jesse ] Computer Network Specialist Center For Arts and Technology College Kelowna BC

Mac OS X Server Web Technologies Administration. For Version 10.3 or Later

This documentation can used to generate a request that can be submitted to any of these CA types.

How To Configure Web Access To Subversion Repositories Using Apache

Securing Communications with your Apache HTTP Server. Lars Eilebrecht

Linux Postfix Smtp (mail Server) Ssl Certificate Installation And Configuration

Bitnami Open Atrium for Huawei Enterprise Cloud

Bitnami Tiny Tiny RSS for Huawei Enterprise Cloud

System Administration

fod Documentation Release Leonidas Poulopoulos

Bitnami Re:dash for Huawei Enterprise Cloud

Oracle HTTP Server ( 단일도메인 ) SSL 인증서갱신설치가이드 본문서는주식회사한국기업보안에서 SSL 보안서버인증서설치를위해작성된문서로 주식회사한국기업보안의동의없이무단으로사용하실수없습니다. [ 고객센터 ] 한국기업보안. 유서트기술팀

Manually Password Protect Directories Apache Ubuntu

Deltek Maconomy. Navigator Installation

HTTPS Setup using mod_ssl on CentOS 5.8. Jeong Chul. tland12.wordpress.com. Computer Science ITC and RUPP in Cambodia

Bitnami ez Publish for Huawei Enterprise Cloud

Apache, Php, MySql Configuration

Storage Made Easy Cloud Appliance installation Guide

An internal CA that is part of your IT infrastructure, like a Microsoft Windows CA

How to set up a WordPress Website on Amazon Web Services (AWS)

Phpmyadmin Windows Xp

Bitnami TestLink for Huawei Enterprise Cloud

Install WordPress 3.X In Multi Blog / Multi user mode On localhost

Bitnami Mantis for Huawei Enterprise Cloud

PoWA Documentation. Release Dalibo

Apache Httpd Manual Conf Listen Ipv6 >>>CLICK HERE<<<

IPv6 Sauron - Quick How To

Bitnami OSQA for Huawei Enterprise Cloud

Red Hat Ceph Storage Ceph Object Gateway for Ubuntu x86 64

Public-key Infrastructure

CSM - How to install Third-Party SSL Certificates for GUI access

Client Authenticated SSL Server Setup Guide for Apache Webservers

Contents. Deployment: Automated Installation of Cygwin

Nimsoft Unified Management Portal

Crypto Programming with OpenSSL. (Creating Certificates)

Web Interface Installation Guide. Version 8.2

Koha INSTALLATION PROCEDURE on Ubuntu Download ubuntu ISO File [Free download from Google]

Transcription:

APACHE HTTP SERVER

About Apache Apache http server project http://httpd.apache.org Apache foundation started to support the web server project, but now extends to a multitude of other projects.

Stats of Web Server types

What the Busiest 1M Websites use Totals for Active Servers Across All Domains - May 2010 Google 13% nginx 9% lighttpd 0% Microsoft 19% Apache 59%

File System Layout config files are in /usr/local/etc/apache22/ files the webserver will serve are in /usr/local/www/apache22/data/ Startup script is /usr/local/etc/rc.d/apache22 Take a look in /usr/local/etc/rc.d/apache22 Add apache22_enable="yes" to /etc/rc.conf Run /usr/local/etc/rc.d/apache22 start Restart $ apachectl restart

Apache SSL Secure Socket Layer (SSL) port is 443 SSL is important to protect communication between browser and web-server Requires the creation of SSL certificates and Certificate Signing Requests (CSR) For integrity SSL certificates are signed by a Certificate Authority s (CA) such as Verisign Self signed Certificates will also work but your browser will not trust it and will give a warning to users (which most don t read) Refer to the Creating SSL Certificate Exercise Section

How SSL Works Each SSL certificate has a Public and Private key The Public Key is used to encrypt the information The Public Key is accessible to everyone The private Key is used to decipher the information The private should be not be disclosed

Role of Certificate Authority There are a number of CA that certify certificates Most browsers have pre-included public Keys from the CA s A CA certified certificate will have validation information signed by the CA s private key The browser will decrypt the validation information using the public key and verify that the certificate is certified by the CA If this fails a warning is given

Virtual Hosting Apache Provides multiple options of virtual hosting and scales Name Based virtual hosts IP Based Virtual Hosts Aliases Its recommended to use an IP address over hostnames in virtual hosting configuration Refer to virtual hosting Exercise section

Apache and IPv6 Apache supports IPv4 and IPv6 by default Set the listen option to port 80 will listen for both IPv4 and IPv6 listen option with IPv4 and IPv6 specific addresses will invoke different sockets for each protocol Listen 196.200.219.xx:80 Listen [2001:4348:0:219:196.200.219:xx]:80

Start Apache! /usr/local/etc/rc.d/apache22 start Check that you can access http://localhost in your browser Check that you can access https://localhost in your browser, and that you get a certificate warning Click on the padlock icon in your browser and check that the certificate details are correct Profit!

Apache implementations Apache is widely used to serve many content applications Webmail, Blogs, Wiki s, CMS etc Attempt to install wordpress and configure it

SETUP LAMP ARCHITECTURE

Setup the software # sudo apt-get install apache2 mysql-server php5-mysql libapache2-mod-php5 Rule for the the FIREWALL # ufw allow www Necessary to authorized HTTP requests

PHP Test Page Create the file /var/www/test.php With the command # echo <? phpinfo()? > /var/www/test.php Acced to the page : http://<adresse_ip_of_server>/test.php

Create a SSL certificate /etc/ssl # make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/certs/www.monsite.ro.crt

Activate the ssl module on Apache By default Apache configured to use the HTTPS protocole # a2enmod ssl

Serve an website in ssl Create a new file /etc/apache2/site-available/www.monsite.fr-ssl <VirtualHost_default_:443> ServerAdmin webmaster@monsite.ro (replaced by your address) DocumentRoot /srv/www.monsite.ro-ssl/error.log ErrorLog ${APACHE_LOG_DIR}/www.monsite.ro-ssl/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/www.monsite.ro-ssl/access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/www.monsite.ro.crt BrowserMatch MSIE [2-6] \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch MSIE [17-9] ssl-unclean-shutdown </VirtualHost>

Serve Several website Activate virtual hosts on the 443 port by adding the ligne : NameVirtualHost *:443 In the file /etc/apache2/ports.conf And modify /etc/apache2/sites-vailable/monsite.ro-ssl????

Create : # mkdir /srv/www.monsite.fr-ssl # mkdir /var/log/apache2/www.monsite.ro-ssl To activate restart Apache # a2ensite www.monsite.ro-ssl # service apache2 restart If the FireWall is activated you need to add : # ufw allow WWW Secure

AN WEBESERVER IN PYTHON

Setup Cherrypy http://cherrypy.org On Linux Python3 setup.py install

Put on ligne of the first page Create in your directory a small text file : tutorial.conf [global] server.socket_host= 127.0.0.1???? server.socket_port=8080 server.thread_pool=5 tools.session.on=true tools.encode.encoding= Utf-8 [/annexe] tools.staticdir.on=true tools.staticdir.dir= annexes Create your Python Script Import cherrypy class MonSiteWeb(object): def index(self) : return <h1>bonjour à vous!</h1> Index.exposed=TRUE # Main Program cherrypy.quickstart(monsiteweb(),config= tutorial.conf

Setup your website http://localhost:8080/index