By sergiofilhow
I installed ghostblog and cannot put another folder on the /var/www to work.
eg: www.domain.com/subdirectory to be /var/www/subdirectory
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!
@sergiofilhow: On the Ghost blog one-click app, the configuration is located at <code>/etc/nginx/conf.d/default.conf</code>
This can be accomplished by add a new location directive to your Nginx server block. Your configuration probably looks something like this: <br> <br><pre> <br>server { <br> listen 0.0.0.0:80; <br> server_name www.domain.com; <br> <br> location / { <br> proxy_set_header X-Real-IP $remote_addr; <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>} <br></pre> <br> <br>To direct www.domain.com/subdirectory to /var/www/subdirectory add: <br> <br><pre> <br> location /subdirectory/ { <br> alias /var/www/subdirectory/; <br> } <br></pre> <br> <br> <br>Let us know how it goes!
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.