tips

Run office 365 at ubuntu

 

The easy way to run office365 with Ubuntu, and feel like you have installed Office in your Ubuntu, this is how I do it

First, you must have an office365 account activated and also install office365webdesktop apps in your Ubuntu using snap

like this

 sudo snap install office365webdesktop --beta

And then open office365webdesktop in your application that’s it, done.

Happy coding

Howto setting wordpress working under proxy nginx

This is my note howto setting WordPress

First add this at wp-config.php

define('FORCE_SSL_ADMIN', true);

if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;
}
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
    $_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}

define('WP_HOME', 'https://domain name');
define('WP_SITEURL', 'https://domain name');