28AugSelamat Hari Raya

raya

03AugHow to run simply PHP and Tomcat side-by-side

Merujuk kepada perkara diatas, saya telah memikirkan penyelesaian terbaik kepada masalah ini. Berikut adalah cadangan penyelesaian saya:

  1. Set semula Apache-Tomcat untuk guna port 8080 kerana port ini adalah default untuk Tomcat.
  2. Set semula Apache-PHP untuk guna port 80.
  3. Saya akan buat satu virtual directory dalam Apache-PHP bernama http://your-hosting/TOMCAT
    *nota: directory ini adalah dalam PHP, bukan Tomcat.
  4. Dalam folder TOMCAT satu header redirection akan berfungsi untuk redirect http://your-hosting/TOMCAT
  5. ke http://your-hosting:8080/TOMCAT/index.jsp

Rumusan: Apabila user masukkan address http://your-hosting/TOMCAT , secara automatik Apache-PHP akan redirect ke http://your-hosting:8080/TOMCAT/index.jsp
PHP akan dipaparkan apabila user menaip http://your-hosting/ sahaja.. Tomcat akan dipaparkan apabila user menaip  http://your-hosting/TOMCAT 

Selamat mencuba!

29JulPentium III

This is a Pentium III motherboard from a decent age computer set in year 2000. Today we have at least Core 2 Duo or Phenom to deal with the hunger of computing power in this 64-bit world.

23JulShower

A hot shower in a very cold morning is the best bath we could ever have. Happy bathing!

23JulA week without unrest

This week has been a hectic week for myself. Only today I have the opportunity to have a nice rest after 5.00 pm. Well, weekend is coming and hopefully a better day is coming. Cheers




Recent Flickrs

    Blogroll

    Recent Listening