default.conf or what you want
vim /etc/nginx/conf.d/default.conf
add proxy_set_header for php files
// Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address | |
if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
$http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); | |
$_SERVER['REMOTE_ADDR'] = $http_x_headers[0]; | |
} |
Hi all. After wanting true color support in Mosh (to use Brow.sh), I also wanted to integrate it more tightly with Windows. Since I reckon more people will be wanting to accomplish this, here is a guide.
bash
from a CMD prompt.bash ~
in CMD promptsudo add-apt-repository ppa:keithw/mosh-dev
then sudo apt-get update
@echo off