By nicklatocha
I’ve installed the ghost image and I’m trying to figure out where the redirect to Ghost is?
I’ve checked the nginx config and the root is here:
/usr/share/nginx/www
But can’t see anything that redirects to Ghost?
Also if I put a html or php file in the document root it’s not accessible?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Nginx doesn’t use .htaccess files. It just proxies all requests to Ghost (take a look at the files in <code>/etc/nginx/sites-enabled</code>).
Hello, <br> <br>I’m having a similar problem, with nginx redirecting everything to Ghost. I have ghost running under the subdirectory /blog via nginx, following this guide http://www.allaboutghost.com/how-to-install-ghost-in-a-subdirectory, but now it returns Ghosts 404 page for the root folder. The droplet is running the Ghost application and have only been edited in the ghost config.js to fit /blog and in the default file under sites-available, according to <br> <br><code> <br> <br>location ^~ /blog { <br> proxy_set_header X-Real-IP $remote_addr; <br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; <br> proxy_set_header Host $http_host; <br> proxy_set_header X-NginX-Proxy true; <br> <br> proxy_pass http://127.0.0.1:2368; <br> proxy_redirect off; <br> } <br></code> <br> <br> <br>Has anyone any suggestion? <br> <br> <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.