Skip to content

mskian/Ghost-Blog-Nginx-and-Host-Configuration

Repository files navigation

Ghost CMS Nginx and Host Configuration

Ghost CMS Nginx, Host and SSL Configuration

example.com.conf

sudo nano /var/www/ghost/system/files/example.com.conf

example.com-ssl.conf

sudo nano /var/www/ghost/system/files/example.com-ssl.conf

ssl-params.conf

sudo nano /etc/nginx/snippets/ssl-params.conf

nginx.conf

sudo nano /etc/nginx/nginx.conf

These files generate and Configure while installing Ghost via Ghost-CLI

I add extra functions on the Nginx and Host configuration file

Force SSL redirect

File - example.com.conf

# Redirect HTTP to HTTPS - Remove this if you are Not Configuring SSL for your Ghost Blog
    if ($scheme = http) {
        return 301 https://$server_name$request_uri;
    }
    

Remove Powered by HTTP header

Files - example.com.conf and example.com-ssl.conf

 proxy_hide_header X-powered-by;

Add x-xss-protection on Header

File - ssl-params.conf

add_header x-xss-protection "1; mode=block" always;

Remove Nginx Version and OS Name

File - nginx.conf

  • Find this Line #server_tokens off;
  • Remove # from the Line
  • Save the Nginx File and Restart (For Gzip Compression check our nginx.conf file)

Features

  • Secure SSL A+ Grade
  • Force SSL
  • Nginx Proxy
  • Hide Powered by

Latest and Updated Files

  • example.com.conf
  • example.com-ssl.conf
  • ssl-params.conf

Deprecated Files

  • ghost.conf
  • ghost.service

Fork this github repository.Every Month we will update this Respository After Configuration test

Maintained by Santhosh veer

Here is Full Installation Guide to Install Ghost Blog CMS on Ubuntu with Free SSL and HTTP/2 - Read Now

(C) 2017-2018 itrendbuzz.com

Releases

No releases published

Packages

No packages published