<p>Beberapa hari yang lalu, saya melakukan migrasi web server apache2 menjadi nginx. Terdapat beberapa aplikasi web didalam nya, sebagian besar lancar dipindahkan ke nginx, namun ada 1 aplikasi yang sedikit bermasalah, karena konfigurasi pada nginx terhadap aplikasi tersebut sedikit ribet hehehe :D</p>
<p>Aplikasi tersebut yaitu Z-Push. Pada server tersebut, Z-Push ini digunakan untuk melakukan Active-Sync terhadap Zimbra. Pada saat menggunakan apache2, Z-Push berjalan lancar, namun begitu dipindahkan ke nginx, sedikit bermasalah.</p>
<p>Ohh ya untuk panduan konfigurasi Z-Push Active-Sync Zimbra pada Apache2, bisa dilihat di panduan berikut ini >> <a href="https://imanudin.net/2014/11/11/how-to-enable-mode-activesync-on-zimbra-ose/" target="_blank" rel="noopener noreferrer">https://imanudin.net/2014/11/11/how-to-enable-mode-activesync-on-zimbra-ose/</a></p>
<p>Setelah mencari beberapa referensi perihal Z-Push pada nginx, didapatlah sample konfigurasi yang bisa digunakan. Berikut isian konfigurasinya, pada directory /etc/nginx/sites-available/, buat sebuah file virtualhost misal zpush, lalu isikan dengan script dibawah ini.</p>
<blockquote>
<h3><span style="color: #ff0000;">Baca Juga : <span style="color: #0000ff;"><a style="color: #0000ff;" href="https://rizkypratama.id/blog/2018/12/27/tips-mendapatkan-nilai-a-pada-hasil-qualys-ssl-labs-dengan-nginx/" target="_blank" rel="noopener">Tips Mendapatkan Nilai A+ pada Qualys SSL Labs dengan Nginx</a></span></span></h3>
</blockquote>
<pre>server { 
 server_name zpush.rizkypratama.id; 
 
 listen 443 ssl; 
 #listen [::]:443 ssl; 
 
 ssl on; 
 ssl_certificate /etc/nginx/ssl/commercial.pem; 
 ssl_certificate_key /etc/nginx/ssl/commercial.pem; 
 ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 
 ssl_prefer_server_ciphers on; 
 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCMSHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCMSHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCMSHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSAAES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHERSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCMSHA256:AES256-GCM-SHA384:AES128:AES256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4; 
 add_header Strict-Transport-Security "max-age=63072000; preload"; 
 
 # If you're using PHP-FPM uncomment the following lines. 
 include fastcgi_params; 
 fastcgi_index index.php; 
 fastcgi_param SCRIPT_FILENAME $document_root; 
 fastcgi_param REQUEST_URI $1; 
 fastcgi_param PHP_FLAG "magic_quotes_gpc=off \n register_globals=off \n magic_quotes_runtime=off \n short_open_tag=on"; 
 fastcgi_param PHP_VALUE "post_max_size=128M \n upload_max_filesize=128M \n max_execution_time=3660"; 
 fastcgi_param HTTP_PROXY ""; 
 fastcgi_read_timeout 3660; # Z-Push Ping might run 3600s, but to be safe 
 
 
 location /Microsoft-Server-ActiveSync { 
 alias /var/www/z-push/index.php; 
 access_log /var/log/nginx/z-push-access.log; 
 error_log /var/log/nginx/z-push-error.log; 
 
 client_max_body_size 20m; 
 client_body_buffer_size 128k; 
 
 # Select one of the fastcgi_pass values or adapt to your configuration 
 #fastcgi_pass unix:/var/run/php5-fpm.sock; # for PHP 5.X Debian/Ubuntu 
 fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # for PHP 7.X Debian/Ubuntu 
 #fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; # usually RedHat and its derivatives 
 #fastcgi_pass 127.0.0.1:9000; # default php-fpm config 
 } 
 
 location ~* /AutoDiscover/AutoDiscover.xml { 
 alias /var/www/z-push/autodiscover/autodiscover.php; 
 
 access_log /var/log/nginx/z-push-autodiscover-access.log; 
 error_log /var/log/nginx/z-push-autodiscover-error.log; 
 
 # Select one of the fastcgi_pass values or adapt to your configuration 
 #fastcgi_pass unix:/var/run/php5-fpm.sock; # for PHP 5.X Debian/Ubuntu 
 fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # for PHP 7.X Debian/Ubuntu 
 #fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; # usually RedHat and its derivatives 
 #fastcgi_pass 127.0.0.1:9000; # default php-fpm config 
 
 fastcgi_index autodiscover.php; 
 } 
} 
</pre>
<p>Silakan sesuaikan pada bagian server_name, ssl_certificate dan fastcgi_pass, jika sudah sesuai, silakan di save dan aktifkan virtualhost tersebut.</p>
<pre>ln -s /etc/nginx/sites-available/z-push /etc/nginx/sites-enabled/ 
service nginx restart 
</pre>
<p>Silakan akses Z-Push tersebut via browser dahulu untuk test, pastikan muncul pop up untuk mengisikan username dan password yang ada pada Zimbra</p>
<p><img data-attachment-id="1202" data-permalink="https://rizkypratama.id/blog/2019/03/07/konfigurasi-z-push-active-sync-zimbra-nginx/screen-shot-2019-03-07-at-21-55-12/" data-orig-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.12.png?fit=742%2C344&;ssl=1" data-orig-size="742,344" data-comments-opened="1" data-image-meta="{";aperture";:";0";,";credit";:";";,";camera";:";";,";caption";:";";,";created_timestamp";:";0";,";copyright";:";";,";focal_length";:";0";,";iso";:";0";,";shutter_speed";:";0";,";title";:";";,";orientation";:";0";}" data-image-title="Screen Shot 2019-03-07 at 21.55.12" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.12.png?fit=300%2C139&;ssl=1" data-large-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.12.png?fit=742%2C344&;ssl=1" class="aligncenter wp-image-1202 " src="https://rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.12.png" alt="" width="514" height="238" /></p>
<p>Jika username dan password benar, maka akan muncul tampilan berikut.</p>
<p><img data-attachment-id="1203" data-permalink="https://rizkypratama.id/blog/2019/03/07/konfigurasi-z-push-active-sync-zimbra-nginx/screen-shot-2019-03-07-at-21-55-35/" data-orig-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.35.png?fit=787%2C474&;ssl=1" data-orig-size="787,474" data-comments-opened="1" data-image-meta="{";aperture";:";0";,";credit";:";";,";camera";:";";,";caption";:";";,";created_timestamp";:";0";,";copyright";:";";,";focal_length";:";0";,";iso";:";0";,";shutter_speed";:";0";,";title";:";";,";orientation";:";0";}" data-image-title="Screen Shot 2019-03-07 at 21.55.35" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.35.png?fit=300%2C181&;ssl=1" data-large-file="https://i0.wp.com/rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.35.png?fit=787%2C474&;ssl=1" class="aligncenter wp-image-1203 " src="https://rizkypratama.id/wp-content/uploads/2019/03/Screen-Shot-2019-03-07-at-21.55.35.png" alt="" width="518" height="312" /></p>
<p>Selanjutnya silakan lakukan konfigurasi Active-Sync pada Mobile Device yang kalian gunakan.</p>
<p>Mungkin cukup sekian, semoga bermanfaat.</p>
<div class="saboxplugin-wrap" itemtype="http://schema.org/Person" itemscope itemprop="author"><div class="saboxplugin-tab"><div class="saboxplugin-gravatar"><img src="https://rizkypratama.id/wp-content/uploads/2020/09/My-Photos.jpg" width="100" height="100" alt="My Photos" itemprop="image"></div><div class="saboxplugin-authorname"><a href="https://rizkypratama.id/blog/author/rizky/" class="vcard author" rel="author"><span class="fn">Rizky Pratama</span></a></div><div class="saboxplugin-desc"><div itemprop="description"><p>Rizky Pratama. Tinggal di Bekasi, Jawa Barat. Seorang IT di salah satu perusahaan IT. Pengguna Mac, Linux dan Windows<br />
Selain sebagai penulis di blog ini, saya juga penulis di blog saya yang lain, yaitu <a href="https://pratama.biz.id" target="_blank" rel="noopener noreferrer">https://pratama.biz.id</a></p>
</div></div><div class="saboxplugin-web "><a href="https://rizkypratama.id" target="_blank" >rizkypratama.id</a></div><div class="clearfix"></div><div class="saboxplugin-socials sabox-colored"><a title="Facebook" target="_blank" href="https://web.facebook.com/rizkypratama04" rel="nofollow noopener" class="saboxplugin-icon-color"><svg class="sab-facebook" viewBox="0 0 500 500.7" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="st0" d="m499.4 250.9c0 9.9-0.6 19.7-1.7 29.2-0.1 0.6-0.1 1.1-0.2 1.7-0.8 6.3-1.8 12.4-3 18.5-0.2 1.1-0.5 2.2-0.7 3.3-1.2 5.6-2.6 11-4.2 16.5-23.4 81.3-87.1 145.6-168.2 169.8-4.5 1.3-9.1 2.6-13.7 3.7-7.6 1.8-15.4 3.3-23.3 4.4-5.5 0.8-11.1 1.3-16.7 1.7-0.8 0.1-1.6 0.1-2.4 0.1-5 0.3-10.1 0.4-15.2 0.4-137.8 0-249.4-111.6-249.4-249.3s111.6-249.4 249.4-249.4 249.3 111.7 249.3 249.4z" fill="#3b5998" /><path class="st1" d="m493.8 303.6c-1.2 5.6-2.6 11-4.2 16.5-23.4 81.3-87.1 145.6-168.2 169.8-4.5 1.3-9.1 2.6-13.7 3.7l-100.9-101 1.8-3.5 2.1-76.7-45.3-43.7 41.3-31 30-95.3 71.4-24.7 185.7 185.9z" /><path class="st2" d="M206.8,392.6V268.8h-41.5v-49.2h41.5v-38.8c0-42.1,25.7-65,63.3-65c18,0,33.5,1.4,38,1.9v44H282 c-20.4,0-24.4,9.7-24.4,24v33.9h46.1l-6.3,49.2h-39.8v123.8" /></svg></span></a><a title="Instagram" target="_blank" href="https://www.instagram.com/rzkyprtmaaa01/" rel="nofollow noopener" class="saboxplugin-icon-color"><svg class="sab-instagram" viewBox="0 0 500 500.7" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="st0" d="m499.8 250.7c0 7.6-0.4 15.2-1 22.6-0.2 2.2-0.4 4.4-0.7 6.6-0.1 0.6-0.1 1.1-0.2 1.7-0.3 2.6-0.7 5.2-1.1 7.7-0.4 2.3-0.8 4.7-1.2 7 0 0.3-0.1 0.6-0.2 0.9-0.2 1-0.4 1.9-0.5 2.9-0.2 0.8-0.4 1.6-0.5 2.5-0.1 0.3-0.1 0.5-0.2 0.8-0.7 3.3-1.5 6.5-2.3 9.7-0.6 2.3-1.2 4.5-1.9 6.8-23.4 81.3-87.1 145.6-168.2 169.8-3 0.9-6.1 1.8-9.2 2.6-1.5 0.4-3 0.8-4.5 1.1-3.6 0.9-7.2 1.6-10.9 2.3-0.2 0-0.5 0.1-0.7 0.1l-3 0.6c-1.8 0.3-3.6 0.6-5.4 0.9-0.2 0-0.3 0.1-0.5 0.1-0.9 0.1-1.9 0.3-2.8 0.4-5.5 0.8-11.1 1.3-16.7 1.7-0.8 0.1-1.6 0.1-2.4 0.1-5 0.3-10.1 0.4-15.2 0.4-137.7 0-249.3-111.6-249.3-249.3s111.6-249.4 249.3-249.4 249.3 111.7 249.3 249.4z" fill="#405de6" /><path class="st1" d="m495.4 297.2c-0.2 1-0.4 1.9-0.5 2.9-0.2 0.8-0.4 1.6-0.5 2.5-0.1 0.3-0.1 0.5-0.2 0.8-0.7 3.3-1.5 6.5-2.3 9.7-0.6 2.3-1.2 4.5-1.9 6.8-23.4 81.3-87.1 145.6-168.2 169.8-3 0.9-6.1 1.8-9.2 2.6-1.5 0.4-3 0.8-4.5 1.1-3.6 0.9-7.2 1.6-10.9 2.3-0.2 0-0.5 0.1-0.7 0.1l-151.5-152.7v-147l9.2-27 14.8-14 33-8 70-5 80.5 11.7 142.9 143.4z" /><path class="st2" d="m252.7 192.1c-34.1 0-61.6 27.5-61.6 61.6s27.5 61.6 61.6 61.6 61.6-27.5 61.6-61.6-27.5-61.6-61.6-61.6zm0 101.6c-22 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm78.5-104.1c0 8-6.4 14.4-14.4 14.4s-14.4-6.4-14.4-14.4 6.4-14.4 14.4-14.4c7.9 0 14.4 6.4 14.4 14.4zm40.7 14.6c-0.9-19.2-5.3-36.3-19.4-50.3-14-14-31.1-18.4-50.3-19.4-19.8-1.1-79.2-1.1-99.1 0-19.2 0.9-36.2 5.3-50.3 19.3s-18.4 31.1-19.4 50.3c-1.1 19.8-1.1 79.2 0 99.1 0.9 19.2 5.3 36.3 19.4 50.3s31.1 18.4 50.3 19.4c19.8 1.1 79.2 1.1 99.1 0 19.2-0.9 36.3-5.3 50.3-19.4 14-14 18.4-31.1 19.4-50.3 1.2-19.9 1.2-79.2 0-99zm-25.6 120.2c-4.2 10.5-12.3 18.6-22.8 22.8-15.8 6.3-53.3 4.8-70.8 4.8s-55 1.4-70.8-4.8c-10.5-4.2-18.6-12.3-22.8-22.8-6.3-15.8-4.8-53.3-4.8-70.8s-1.4-55 4.8-70.8c4.2-10.5 12.3-18.6 22.8-22.8 15.8-6.3 53.3-4.8 70.8-4.8s55-1.4 70.8 4.8c10.5 4.2 18.6 12.3 22.8 22.8 6.3 15.8 4.8 53.3 4.8 70.8s1.5 55.1-4.8 70.8z" /></svg></span></a><a title="User email" target="_self" href="mailto:&#114;&#105;zky&#064;riz&#107;&#121;pra&#116;&#097;&#109;a.&#105;&#100;" rel="nofollow noopener" class="saboxplugin-icon-color"><svg class="sab-user_email" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500.7"><path class="st0" d="M499.4 250.9c0 2.2 0 4.4-0.1 6.6v0.4c-0.1 1.8-0.2 3.6-0.2 5.3 0 0.4 0 0.8-0.1 1.2 -0.1 1.3-0.1 2.6-0.2 4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.1-0.7 0.2 -1.5 0.3-2.9 0.5-4.3 0.8 -0.6 0.1-1.3 0.2-1.9 0.4 -0.2 0-0.3 0.1-0.5 0.1 -1.1 0.2-2.2 0.4-3.3 0.6 -1.2 0.2-2.4 0.4-3.5 0.5 -0.7 0.1-1.4 0.2-2.1 0.3 -0.3 0-0.5 0.1-0.8 0.1 -2.7 0.4-5.5 0.7-8.2 1 -0.3 0-0.7 0.1-1 0.1L119.9 344.1l105.3-46.7L119.9 191.6l265.6-41.2L499.1 263.2z" /><path class="st2" d="M390.1 214.1c2.1-1.7 5.3-0.1 5.3 2.6v112c0 14.5-11.8 26.3-26.3 26.3H141.2c-14.5 0-26.3-11.8-26.3-26.3v-112c0-2.7 3.1-4.3 5.3-2.6 12.3 9.5 28.5 21.6 84.4 62.2 11.6 8.4 31.1 26.2 50.5 26.1 19.6 0.2 39.4-18 50.6-26.1C361.6 235.7 377.8 223.6 390.1 214.1zM255.1 284.8c12.7 0.2 31-16 40.2-22.7 72.7-52.8 78.2-57.4 95-70.5 3.2-2.5 5-6.3 5-10.4v-10.4c0-14.5-11.8-26.3-26.3-26.3H141.2c-14.5 0-26.3 11.8-26.3 26.3v10.4c0 4.1 1.9 7.8 5 10.4 16.8 13.1 22.3 17.7 95 70.5C224.1 268.8 242.4 285 255.1 284.8L255.1 284.8z" /></svg></span></a></div></div></div>
Beberapa hari yang lalu saat saya sedang scroll timeline X (Twitter) saya menemukan sebuah postingan…
Beberapa waktu lalu saya ada migrasi dan upgrade beberapa server, salah satunya server postfix. Server…
Pada bulan April 2024 lalu, Ubuntu telah release versi terbaru yaitu Ubuntu 24.04 LTS, sehingga…
Ngga nyangka akhirnya saya bisa login kembali ke blog saya yang sudah berdebu ini, kali…
Beberapa waktu lalu, Excellent mendapatkan project migrasi Zimbra dari versi Open Source Ke Zimbra Network…
Bulan Oktober 2022 lalu, Apple resmi release MacOS terbaru mereka, yaitu MacOS Ventura. Beberapa fitur…