8/26/18

SETTING LOCALE FAILED. PLEASE CHECK THAT YOUR LOCALE SETTINGS

sudo nano /etc/default/locale
add
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_TYPE=en_US.UTF-8

or

export LANGUAGE="en_US.UTF-8"
echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale

Secure Nginx from Clickjacking with X-FRAME-OPTIONS

X-Frame-Options in HTTP response header can be used to indicate whether or not a browser should be allowed to open a page in frame or iframe.
  • SAMEORIGIN: This setting will allow the page to be displayed in a frame on the same origin as the page itself.
  • DENY: This setting will prevent a page displaying in a frame or iframe.
  • ALLOW-FROM URI: This setting will allow a page to be displayed only on the specified origin.
Add the following parameter in nginx.conf under server section:
add_header X-Frame-Options "SAMEORIGIN";