Report this

What is the reason for this report?

how can I create a folder to be a sub directory on my domain

Posted on May 21, 2014

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@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!

I couldn’t find the config file, where can I find it?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.