By liutungfor
i creat one Droplet for Ghost blog, using the domain 1tf.me for the blog. how to set uo other site, is that i need to setting nginx to bulid the other site like photo.1tf.me? help me :)
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!
Well, I’ve never used Ghost Blog myself, but as far as I can tell what you want to do sound a lot like the Virtual Domain feature, present both in Apache and NGINX. <br> <br>You may find more information here: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-centos-6 <br> <br> <br>With Virtual Domains, you might have several different domains (including, but not restricted to sub-domains to domains you own.) being processed by the same server. <br> <br>Ex.: www.virtdom1.com and www.virtdom2.com both resolve to a droplet with IP 12.34.56.78 where “virtdom1.com” is @ “/usr/local/nginx/html/virtdom1.com” and “virtdom2.com” is @ “/usr/local/nginx/html/virtdom2.com”. You are virtually unrestricted regarding to how many domains and/or sub-domains you may host at one instance. <br> <br>Using Virtual Domains, NGINX acts also as a HTTP proxy, forwarding each domain request to it’s due folder in the web server. <br> <br> <br>Hope this helps ya! :)
Well, I’ve never used Ghost Blog myself, but as far as I can tell what you want to do sound a lot like the Virtual Domain feature, present both in Apache and NGINX. <br> <br>You may find more information here: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-centos-6 <br> <br> <br>With Virtual Domains, you might have several different domains (including, but not restricted to sub-domains to domains you own.) being processed by the same server. <br> <br>Ex.: www.virtdom1.com and www.virtdom2.com both resolve to a droplet with IP 12.34.56.78 where “virtdom1.com” is @ “/usr/local/nginx/html/virtdom1.com” and “virtdom2.com” is @ “/usr/local/nginx/html/virtdom2.com”. You are virtually unrestricted regarding to how many domains and/or sub-domains you may host at one instance. <br> <br>Using Virtual Domains, NGINX acts also as a HTTP proxy, forwarding each domain request to it’s due folder in the web server. <br> <br> <br>Hope this helps ya! :)
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.