SlideShare a Scribd company logo
APACHE 2
Secure HTTP With Apache Web Server
By GOODLE CREW
Web Server
 Adalah suatu daemon yang berfungsi
menerima request melalui protocol http
baik dari local maupun dari internet
 Informasi yang direquest oleh web
browser bisa berupa file yang ada dalam
storage atau meminta server untuk
melakukan funsgi tertentu
 IIS (web server untuk html & asp ).Bisa jalan di
OS Windows
 APACHE webserver (web server untuk
html,php,asp,jsp, dsb).Bisa jalan di OS Windows
dan LINUX. Sifatnya modular dengan
ditambahkan libapache2
Macam Web Server
 HTTPS adalah varian dari protocol HTTP
dimana user mengakses dengan https://
 Data yang dikirim ke server adalah data
yang terenkripsi.
 Enkripsi yang digunakan adalah enkripsi
SSL (Secure socket Layer).
 Menggunakan TCP port 443.
APACHE Web Server dengan HTTPS
Ilustrasi Koneksi
HTTP vs HTTPS
 Install apache2 dan modul PHP4
• # apt-get install apache2 php4 libapache2-mod-
php4
 Buat Duplikat dari file:
/etc/apache2/sites-available/default
• # cp /etc/apache2/sites-available/default
/etc/apache2/sites-available/website-ssl
 Buat link untuk mengaktifkan modul ssl
saat apache di load
• # a2ensite
• Masukkan “website-ssl”
Mengkonfigurasi HTTPS
Mengkonfigurasi HTTPS
 Mengaktifkan modul php4
• a2enmod
• dijawab dengan “php4”
 mengaktifkan modul ssl
• a2enmod
• dijawab dengan “ssl”
 Kemudian Edit
• /etc/apache2/sites-enabled/website-ssl
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
...
</VirtualHost>
Mengkonfigurasi HTTPS
 Generate Sertifikat anda sendiri dengan
• # apache2-ssl-certificate
• kalo apache2-ssl-certificate tidak ada gunakan :
• # mkdir /etc/apache2/ssl
• # openssl req $@ -new -x509 -days 365 -nodes -out
/etc/apache2/ssl/apache.pem -keyout
/etc/apache2/ssl/apache.pem
• Kemudian anda akan diminta memasukkan kode
negara(ID),State atau propinsi,Nama
Kota,Company,Section Unit,Domain,alamat email
Membuat Sertikat SSL
 Menambahkan Port Listen Untuk
SSL,untuk melakukanya edit file:
• /etc/apache2/ports.conf
 Tambahkan Baris :
• Listen 443
Mengkonfigurasi HTTPS
 Restart APACHE2
• /etc/init.d/apache2 restart
Mengkonfigurasi HTTPS
 Buka web browser
 Cobalah ketikkan
https://localhost/
Mencoba Setting HTTPS
Tampilan HTTPS
Tampilan HTTP biasa
mod-security
Mengkonfigurasi mod-security
 Mod-security ???
• Bagaimana cara anda untuk membatasi SQL
injection, mendefinisikan hanya satu web
browser saja yg boleh akses, jumlah data, dll...
--> membatasi lewat aplikasi
• Apache2 menyediakan modul
• libapache2-mod-security
Mengkonfigurasi mod-security
 Install :
• # apt-get install libapache2-mod-security
 Mengaktifkan module
• a2enmod
• isi dengan “mod-security”
Mengkonfigurasi mod-security
 Copy contoh konfigurasi
• # cd /etc/apache2/conf.d
• # cp /usr/share/doc/libapache2-mod-
security/examples/httpd2.conf.example-full
mod-security.conf
 Restart apache
• # /etc/init.d/apache2 restart
Uji Coba mod-security
 Jalankan aplikasi testingnya
• # cd /usr/share/mod-security/test/
• # ./run-test.pl localhost *.test
 Buka website dengan webbrowser “w3m”
dan mozilla
• # w3m http://localhost
• akan terjawab IIS ... lo bukannya tadi install apache2
???
Mod-chroot
Chroot
 chroot – change
root directory
• dir /var/www/
berubah seolah-
olah menjadi dir “/”
 apache2 jalan di
chroot
Mengkonfigurasi mod-chroot
 Install module chroot
• # apt-get install libapache2-mod-chroot
 Aktifkan module chroot
• # a2enmod
• isi dengan “mod_chroot”
Mengkonfigurasi mod-chroot
 Buat konfigurasi untuk mod-chroot, bisa di
/etc/apache2/conf.d
• # cd /etc/apache2/conf.d
• vim mod-chroot
<IfModule mod_chroot.c>
LoadFile /lib/libgcc_s.so.1
</IfModule>
ChrootDir /var/www
Mengkonfigurasikan mod-chroot
 Buat dir untuk chroot
• # mkdir -p /var/www/var/run
 Jalankan apache2
• # /etc/init.d/apache2 start
 Rubah pidfile
• # cd /var/run
• # ln -s /var/www/var/run/apache2.pid
apache2.pid
Mengkonfigurasi mod-chroot
 buat file coba.php
<?
system(“ls /etc”);
?>
 Script php untuk melihat isi dir /etc
 Bandingkan hasilnya antara ada mod-
chroot dan tidak menggunakan mod-
chroot
Selamat mencoba,...

More Related Content

PPT
websecure.ppt
PPT
Tugas presentasi fix
DOCX
Konfigurasi Web server APACHE2
PPTX
Squid proxy-server
PPTX
Mengamankan Web Server
PDF
Soal ujikom 2013
PPTX
Perkembangan web server
PDF
Nginx owncloud
websecure.ppt
Tugas presentasi fix
Konfigurasi Web server APACHE2
Squid proxy-server
Mengamankan Web Server
Soal ujikom 2013
Perkembangan web server
Nginx owncloud

What's hot (18)

PPTX
TugasII SO2 Install Apache, PHP Dan MySQL Pada CentOS 7 (LAMP)
PDF
Cara Mengamankan Server OJS
DOCX
Konfigurasi https pada debian 7
PDF
FreeBSD Web Server
PDF
Panduan instalasi setiadi2 di server ubuntu 16.04
PPTX
cara install nginx dengan php5 dan dukungan Mysql Di CentOS 6.5
PDF
Tubes streaming arc
PDF
Instalasi Upgrade Open Journal System
DOCX
Konfigurasi router debian 7
PPTX
Tugas ke 2 sistem operasi ii
PDF
L6 web server_fadlysatriyagunawan
PPT
Tugas pw [21] web server - fix
PDF
2013-39. Install Sistem Operasi melalui jaringan dengan ubuntu 10
PDF
2013-44. Install Sistem Operasi melalui jaringan dengan ubuntu 10
DOCX
Router dan proxy server di debian 5
PPTX
Perkembangan web server
PDF
3.1 lab-instalasi dan konfigurasi webserver-mysql-php-phpmyadmin
PDF
Supriyanto squidproxyserver
TugasII SO2 Install Apache, PHP Dan MySQL Pada CentOS 7 (LAMP)
Cara Mengamankan Server OJS
Konfigurasi https pada debian 7
FreeBSD Web Server
Panduan instalasi setiadi2 di server ubuntu 16.04
cara install nginx dengan php5 dan dukungan Mysql Di CentOS 6.5
Tubes streaming arc
Instalasi Upgrade Open Journal System
Konfigurasi router debian 7
Tugas ke 2 sistem operasi ii
L6 web server_fadlysatriyagunawan
Tugas pw [21] web server - fix
2013-39. Install Sistem Operasi melalui jaringan dengan ubuntu 10
2013-44. Install Sistem Operasi melalui jaringan dengan ubuntu 10
Router dan proxy server di debian 5
Perkembangan web server
3.1 lab-instalasi dan konfigurasi webserver-mysql-php-phpmyadmin
Supriyanto squidproxyserver
Ad

Viewers also liked (8)

PPT
CAHs Using Health Information Technology
PPT
Web Server(Apache),
PDF
Application Note APLX-LMW-0403: Interfacing the Apache Web ...
PDF
Super Committee To The Rescue
PPT
Detecting Typo-squatting Domains Mishari Almishari
PDF
PowerPoint Presentation
PDF
Web Packages...Internet Marketing....Hosting
PDF
cPanel User Manual
CAHs Using Health Information Technology
Web Server(Apache),
Application Note APLX-LMW-0403: Interfacing the Apache Web ...
Super Committee To The Rescue
Detecting Typo-squatting Domains Mishari Almishari
PowerPoint Presentation
Web Packages...Internet Marketing....Hosting
cPanel User Manual
Ad

Similar to websecure.ppt (20)

PPT
websecure.ppt
PPTX
Perkembangan web server di linux
DOCX
Tutorial Instalasi TKJ CLoud Server
DOCX
Web server HTTP dan HTTPS
PDF
Konfigurasi web server
PPTX
Presentasi (2).pptx
PDF
Integrasi slims atau eprints dengan dspace
PPT
Perkembangan web server di Linux
PPTX
PDF
Squid apache
PDF
3.1 lab-instalasi dan konfigurasi webserver-mysql-php-phpmyadmin
PDF
14001326 all-about-squid-apache - [the-xp.blogspot.com]
PDF
Web server
PDF
Workshop & pelatihan
ODP
Nutch dan Solr
PDF
Apache web server 1
PPT
Tugas Pw [21]
PPTX
Web server mjs
PDF
Multiple webserver in single ip with Haproxy & Mikrotik
PDF
konfigurasi web server
websecure.ppt
Perkembangan web server di linux
Tutorial Instalasi TKJ CLoud Server
Web server HTTP dan HTTPS
Konfigurasi web server
Presentasi (2).pptx
Integrasi slims atau eprints dengan dspace
Perkembangan web server di Linux
Squid apache
3.1 lab-instalasi dan konfigurasi webserver-mysql-php-phpmyadmin
14001326 all-about-squid-apache - [the-xp.blogspot.com]
Web server
Workshop & pelatihan
Nutch dan Solr
Apache web server 1
Tugas Pw [21]
Web server mjs
Multiple webserver in single ip with Haproxy & Mikrotik
konfigurasi web server

More from webhostingguy (20)

PPT
File Upload
PDF
Running and Developing Tests with the Apache::Test Framework
PDF
MySQL and memcached Guide
PPT
Novell® iChain® 2.3
PDF
Load-balancing web servers Load-balancing web servers
PDF
SQL Server 2008 Consolidation
PDF
What is mod_perl?
PDF
What is mod_perl?
PDF
Master Service Agreement
PPT
PPT
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PDF
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
PPT
Managing Diverse IT Infrastructure
PPT
Web design for business.ppt
PPS
IT Power Management Strategy
PPS
Excel and SQL Quick Tricks for Merchandisers
PPT
OLUG_xen.ppt
PPT
Parallels Hosting Products
PPT
Microsoft PowerPoint presentation 2.175 Mb
PDF
Reseller's Guide
File Upload
Running and Developing Tests with the Apache::Test Framework
MySQL and memcached Guide
Novell® iChain® 2.3
Load-balancing web servers Load-balancing web servers
SQL Server 2008 Consolidation
What is mod_perl?
What is mod_perl?
Master Service Agreement
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Managing Diverse IT Infrastructure
Web design for business.ppt
IT Power Management Strategy
Excel and SQL Quick Tricks for Merchandisers
OLUG_xen.ppt
Parallels Hosting Products
Microsoft PowerPoint presentation 2.175 Mb
Reseller's Guide

websecure.ppt

  • 1. APACHE 2 Secure HTTP With Apache Web Server By GOODLE CREW
  • 2. Web Server  Adalah suatu daemon yang berfungsi menerima request melalui protocol http baik dari local maupun dari internet  Informasi yang direquest oleh web browser bisa berupa file yang ada dalam storage atau meminta server untuk melakukan funsgi tertentu
  • 3.  IIS (web server untuk html & asp ).Bisa jalan di OS Windows  APACHE webserver (web server untuk html,php,asp,jsp, dsb).Bisa jalan di OS Windows dan LINUX. Sifatnya modular dengan ditambahkan libapache2 Macam Web Server
  • 4.  HTTPS adalah varian dari protocol HTTP dimana user mengakses dengan https://  Data yang dikirim ke server adalah data yang terenkripsi.  Enkripsi yang digunakan adalah enkripsi SSL (Secure socket Layer).  Menggunakan TCP port 443. APACHE Web Server dengan HTTPS
  • 6.  Install apache2 dan modul PHP4 • # apt-get install apache2 php4 libapache2-mod- php4  Buat Duplikat dari file: /etc/apache2/sites-available/default • # cp /etc/apache2/sites-available/default /etc/apache2/sites-available/website-ssl  Buat link untuk mengaktifkan modul ssl saat apache di load • # a2ensite • Masukkan “website-ssl” Mengkonfigurasi HTTPS
  • 7. Mengkonfigurasi HTTPS  Mengaktifkan modul php4 • a2enmod • dijawab dengan “php4”  mengaktifkan modul ssl • a2enmod • dijawab dengan “ssl”
  • 8.  Kemudian Edit • /etc/apache2/sites-enabled/website-ssl NameVirtualHost *:443 <VirtualHost *:443> SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem ... </VirtualHost> Mengkonfigurasi HTTPS
  • 9.  Generate Sertifikat anda sendiri dengan • # apache2-ssl-certificate • kalo apache2-ssl-certificate tidak ada gunakan : • # mkdir /etc/apache2/ssl • # openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem • Kemudian anda akan diminta memasukkan kode negara(ID),State atau propinsi,Nama Kota,Company,Section Unit,Domain,alamat email Membuat Sertikat SSL
  • 10.  Menambahkan Port Listen Untuk SSL,untuk melakukanya edit file: • /etc/apache2/ports.conf  Tambahkan Baris : • Listen 443 Mengkonfigurasi HTTPS
  • 11.  Restart APACHE2 • /etc/init.d/apache2 restart Mengkonfigurasi HTTPS
  • 12.  Buka web browser  Cobalah ketikkan https://localhost/ Mencoba Setting HTTPS
  • 16. Mengkonfigurasi mod-security  Mod-security ??? • Bagaimana cara anda untuk membatasi SQL injection, mendefinisikan hanya satu web browser saja yg boleh akses, jumlah data, dll... --> membatasi lewat aplikasi • Apache2 menyediakan modul • libapache2-mod-security
  • 17. Mengkonfigurasi mod-security  Install : • # apt-get install libapache2-mod-security  Mengaktifkan module • a2enmod • isi dengan “mod-security”
  • 18. Mengkonfigurasi mod-security  Copy contoh konfigurasi • # cd /etc/apache2/conf.d • # cp /usr/share/doc/libapache2-mod- security/examples/httpd2.conf.example-full mod-security.conf  Restart apache • # /etc/init.d/apache2 restart
  • 19. Uji Coba mod-security  Jalankan aplikasi testingnya • # cd /usr/share/mod-security/test/ • # ./run-test.pl localhost *.test  Buka website dengan webbrowser “w3m” dan mozilla • # w3m http://localhost • akan terjawab IIS ... lo bukannya tadi install apache2 ???
  • 21. Chroot  chroot – change root directory • dir /var/www/ berubah seolah- olah menjadi dir “/”  apache2 jalan di chroot
  • 22. Mengkonfigurasi mod-chroot  Install module chroot • # apt-get install libapache2-mod-chroot  Aktifkan module chroot • # a2enmod • isi dengan “mod_chroot”
  • 23. Mengkonfigurasi mod-chroot  Buat konfigurasi untuk mod-chroot, bisa di /etc/apache2/conf.d • # cd /etc/apache2/conf.d • vim mod-chroot <IfModule mod_chroot.c> LoadFile /lib/libgcc_s.so.1 </IfModule> ChrootDir /var/www
  • 24. Mengkonfigurasikan mod-chroot  Buat dir untuk chroot • # mkdir -p /var/www/var/run  Jalankan apache2 • # /etc/init.d/apache2 start  Rubah pidfile • # cd /var/run • # ln -s /var/www/var/run/apache2.pid apache2.pid
  • 25. Mengkonfigurasi mod-chroot  buat file coba.php <? system(“ls /etc”); ?>  Script php untuk melihat isi dir /etc  Bandingkan hasilnya antara ada mod- chroot dan tidak menggunakan mod- chroot