Ghost CMS Nginx, Host and SSL Configuration
sudo nano /var/www/ghost/system/files/example.com.conf
sudo nano /var/www/ghost/system/files/example.com-ssl.conf
sudo nano /etc/nginx/snippets/ssl-params.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
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;
}
Files - example.com.conf and example.com-ssl.conf
proxy_hide_header X-powered-by;
File - ssl-params.conf
add_header x-xss-protection "1; mode=block" always;
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)
- Secure SSL A+ Grade
- Force SSL
- Nginx Proxy
- Hide Powered by
- example.com.conf
- example.com-ssl.conf
- ssl-params.conf
ghost.confghost.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