Question

Sub domain + name.com + nginx + odoo

Hello, Currently I have a droplet with odoo set up on it. I have installed Nginx. Our domain name is at name.com and currently dns and name server are pointing to another webhost where we have our website and mail server. I am trying to setup a sub domain (let’s “abc.domain.com” sub) of our domain to point in direction to digital ocean server odoo instance. I understand that I should normally use nginx to filter the abc.domain.com in order to redirect to ip:8069. I don’t undertand if the abc.domain.com should be set up at the registar first or only at digital ocean , or only at nginx or in all of them and how… I searched online , there is no topic or tutorial which is exacltly the same case then I.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

Yes, this can be achieved with Nginx server blocks.

For more information on how to set that up, you can follow the steps here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

Best,

Bobby