Agar setiap service server seperti dns, mail server, httpd, dll mempunyai ip masing-masing kami memanfaatkan virtual ip pada satu buah network interface card di server. Sejak awal midgard berjalan muncul permasalahan bahwa situs yang dibuat dengan midgard tidak dapat diakses lokal melaui web browser di server. Setelah melihat konfigurasi /etc/hosts ternyata ip yang digunakan untuk www.domainkita.org adalah virtual ip. Walau bisa membuka halaman web apache, namun halaman web yang dibuat midgard tidak dapat diakses karena sepertinya midgard tidak mengerti request dari ip virtual. Permasalahan ini dapat diselesaikan setelah mengganti ip address www.domainkita.org pada /etc/hosts dengan ip real di eth0 (network card)
If you use MessageDigest in java to encrypt string, you wont get hash like other language does. So you need to convert the result so that you can compare the hash result with other output that produce by diff language. Found the function on the java net forum private static String baToHexString(byte byteValues[]) { byte singleChar = 0; if (byteValues == null || byteValues.length String entries[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; StringBuffer out = new StringBuffer(byteValues.length * 2); for (int i = 0; i singleChar = (byte) (byteValues[i] & 0xF0); singleChar = (byte) (singleChar >>> 4); // shift the bits down singleChar = (byte...
Comments