Ricky Wibowo wrote:

dear all,
tomcat saya, sudah running di port 8080, lalu apache saya running di port 80 nah, saya mau nanya, misal ada org yg mau "query" file .jsp, saya mau dia lsg saja, tdk melalui port 8080
bgm yah?

thanx

Secara default, kita dapat mengakses server tomcat melalui port 8080. Tetapi untuk keperluan production, tomcat harus dapat diakses melalui port 80.

Langkah yang harus kita ambil adalah :

1. Copy kan file mod_jk2.so ke direktori {APACHE_DIR}\modules
2. Tambahkan baris berikut pada file {APACHE_DIR}\conf\httpd.conf

   LoadModule jk2_module modules/mod_jk2.so

3. Buat file workers2.properties dan simpan di {APACHE_DIR}\conf

   Isi file workers2.properties :

   [shm]
   info=Scoreboard. Requried for reconfiguration and status with
   multiprocess servers.
   file=anon

   # Defines a load balancer named lb. Use even if you only have one
   machine.
   [lb:lb]

   # Example socket channel, override port and host.
   [channel.socket:localhost:8009]
   port=8009
   host=127.0.0.1

   # define the worker
   [ajp13:localhost:8009]
   channel=channel.socket:localhost:8009
   group=lb

   # Map the Tomcat examples webapp to the Web server uri space
   [uri:/examples/*]
   group=lb

   # Ini contoh untuk aplikasi JSP/Servlet yang saya buat
   # Map the AR (Account Receivable) to the Web server uri space
   [uri:/ar/*]
   group=lb

   [status:]
   info=Status worker, displays runtime information

   [uri:/jkstatus/*]
   info=The Tomcat /jkstatus handler
   group=status:


4. Restart Apache
5. Selesai.

--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip, FAQ, dan info milis di http://linux.or.id/milis
Tidak bisa posting? Baca:
http://linux.or.id/problemmilis
http://linux.or.id/tatatertibmilis

Kirim email ke