Web Server Onno W. Purbo
Web server
Instalasi Web server # rpm –ivh apache rpm
Konfigurasi httpd.conf srm.conf access.conf
httpd.conf ServerType – berdiri sendiri / manual inetd. ServerRoot – directory konfigurasi. PidFile – nomor proses ID ResourceConfig / AccessConfig TimeOut – batas waktu time out. KeepAlive – simultan koneksi dari satu IP. MaxKeepAliveRequest – max. keep alive. KeepAliveTimeOut
httpd.conf MinSpareServers & MaxSpareServers – jumlah server untuk server farm. StartServers – server di jalankan. MaxClients – jmlh koneksi simultan di server. MaxRequestsPerChild BindAddress – IP yang di tempelkan. Port – port yang di dengar Apache. User & Group – owner dari Apache Web. ServerAdmin – admin Web server.
httpd.conf ServerName – nama server. ErrorLog LogLevel – level emerg, alert, crit, errors. CustomLog – catat akses client & virtual host. ServerSignature – dikirim saat file tidak ada. UserCanonicalName HostnameLookups – catat hostname akses.
srm.conf DocumentRoot – directory root HTML. UserDir – public_html, DirectoryIndex – index file. FancyIndexing AccessFileName -.htaccess Alias – alias directory khusus, cgi-bin DefaultType – Default tipe dokumen
access.conf Access Control File
access.conf Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks AllowOverride None Allow from all
Virtual host IP based Name based
Virtual Host – IP based DocumentRoot /path/to/document ServerName
Virtual Host – name based NameVirtualHost DocumentRoot /path/to/document1 ServerName DocumentRoot /path/to/document2 ServerName
Konfigurasi Modul Apache # /usr/local/apache/bin/httpd –l Static Module LoadModule php4_module libexec/libphp4.so DSO (Dynamic Shared Object) AddModule mod_php4.c
Menjalankan Web Server # apachectl start # apachectl restart # apachectl –help