# Help understanding the structure of using discourse + static website

**URL:** https://meta.discourse.org/t/help-understanding-the-structure-of-using-discourse-static-website/25557
**Category:** Support
**Created:** [23.Февраль.2015 07:19:43 UTC](https://meta.discourse.org/t/help-understanding-the-structure-of-using-discourse-static-website/25557 "2015-02-23T07:19:43Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [23.Февраль.2015 07:48:25 UTC](https://meta.discourse.org/t/help-understanding-the-structure-of-using-discourse-static-website/25557/4 "2015-02-23T07:48:25Z")

</div>

[Here’s a completed example file for Nginx to be in front of the Docker container and delegate where the client goes based on if they call discourse.mydomain.com or mydomain.com.](https://github.com/discourse/discourse/blob/master/config/nginx.sample.conf) At the bottom of that file, you want to make a second server block for `example.com`. Go to the link I have in my first post and check out the section titled **Create a NGINX ‘site’**. That shows you how to create the server block for your top-level domain. Or, you can also check out [this DO tutorial](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts) for the exact same thing, which shows you how to test the new server block.

As for the NS records, your sub domain needs to point to your DO droplet’s IP address. Because Nginx is the one pointing the client to the correct site, based on if they call [discourse.mydomain.com](http://discourse.mydomain.com) or just [mydomain.com](http://mydomain.com). [This link clarifies what I mean.](http://serverfault.com/questions/476807/nginx-how-to-create-server-block-for-sub-domain)

EDIT: As for the header, [this might be what you’re looking for](https://meta.discourse.org/t/how-to-change-the-logo-url/25543) as it was asked today from someone else too.

---

_[View the full topic](https://meta.discourse.org/t/help-understanding-the-structure-of-using-discourse-static-website/25557)._
