Web Server Onno W Purbo Onnoindo net id
Web Server Onno W. Purbo Onno@indo. net. id
Web server
Instalasi Web server n # rpm –ivh apache-1. 3. 12. rpm
Konfigurasi n n n httpd. conf srm. conf access. conf
httpd. conf n n n n Server. Type – berdiri sendiri / manual inetd. Server. Root – directory konfigurasi. Pid. File – nomor proses ID Resource. Config / Access. Config Time. Out – batas waktu time out. Keep. Alive – simultan koneksi dari satu IP. Max. Keep. Alive. Request – max. keep alive. Keep. Alive. Time. Out
httpd. conf n n n n Min. Spare. Servers & Max. Spare. Servers – jumlah server untuk server farm. Start. Servers – server di jalankan. Max. Clients – jmlh koneksi simultan di server. Max. Requests. Per. Child Bind. Address – IP yang di tempelkan. Port – port yang di dengar Apache. User & Group – owner dari Apache Web. Server. Admin – e-mail admin Web server.
httpd. conf n n n n Server. Name – nama server. Error. Log. Level – level emerg, alert, crit, errors. Custom. Log – catat akses client & virtual host. Server. Signature – dikirim saat file tidak ada. User. Canonical. Name Hostname. Lookups – catat hostname akses.
srm. conf n n n n Document. Root – directory root HTML. User. Dir – public_html, http: //server/~user. Directory. Index – index file. Fancy. Indexing Access. File. Name -. htaccess Alias – alias directory khusus, cgi-bin Default. Type – Default tipe dokumen
access. conf n Access Control File
access. conf <Directory /> Options Follow. Sym. Links Allow. Override None </Directory> <Directory “/usr/local/apache/htdocs”> Options Indexes Follow. Sym. Links Allow. Override None Allow from all </Directory>
Virtual host n n IP based Name based
Virtual Host – IP based <Virtual. Host 192. 168. 0. 1> Document. Root /path/to/document Server. Name www. vhost 1. com </Virtual. Host>
Virtual Host – name based Name. Virtual. Host 192. 168. 0. 128 <Virtual. Host 192. 168. 0. 128> Document. Root /path/to/document 1 Server. Name www. vhost 1. com </Virtual. Host> <Virtual. Host 192. 168. 0. 128> Document. Root /path/to/document 2 Server. Name www. vhost 2. com </Virtual. Host>
Konfigurasi Modul Apache n # /usr/local/apache/bin/httpd –l Static Module n Load. Module php 4_module libexec/libphp 4. so DSO (Dynamic Shared Object) n Add. Module mod_php 4. c
Menjalankan Web Server n n n # apachectl start # apachectl restart # apachectl –help http: //nama_mesin: 8000 http: //192. 168. 0. 1
- Slides: 15