# Example Nginx config for Ghost 1.x?

**URL:** <https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984>\
**Category:** Developer help\
**Created:** [April 18, 2018, 9:49am UTC](https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984 "2018-04-18T09:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GainfulShrimp](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@GainfulShrimp](https://forum.ghost.org/u/GainfulShrimp)\
**Post date:** [April 18, 2018, 9:49am UTC](https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984/1 "2018-04-18T09:49:26Z")

</div>

I roll my own Nginx (for Brotli support etc) and as a result, `ghost install` doesn’t detect that I have Nginx installed (it seems to check for the packaged version).

Although I’ve had success using a modified version of my old Nginx config from Ghost 0.11.x, I’m curious as to what config would be installed for me by ghost-cli, if the check had succeeded (and I’d opted to have ghost-cli setup Nginx for me).

Could someone post an example Nginx config as created by ghost-cli please?

(From screenshots of other people’s installation steps, I think the config gets created at `[ghost-install-folder]/ghost/system/files/[blog-domain].conf`, but I checked that folder and I only have a systemd unit file in there.)

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 18, 2018, 9:55am UTC](https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984/2 "2018-04-18T09:55:44Z")

</div>

The templates used by Ghost-CLI can be found in the repo: [Ghost-CLI/extensions/nginx/templates at main · TryGhost/Ghost-CLI · GitHub](https://github.com/TryGhost/Ghost-CLI/tree/master/extensions/nginx/templates)

I’ve updated our [knowledgebase](https://docs.ghost.org/docs/cli-knowledge-base#section-nginx) to include this link.

There’s also an open issue for the custom nginx detection: [Detect manual nginx setup · Issue #310 · TryGhost/Ghost-CLI · GitHub](https://github.com/TryGhost/Ghost-CLI/issues/310).

---

<div class="post-metadata">

**Author:** ![GainfulShrimp](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@GainfulShrimp](https://forum.ghost.org/u/GainfulShrimp)\
**Post date:** [April 18, 2018, 10:34am UTC](https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984/3 "2018-04-18T10:34:09Z")

</div>

Great! Thanks very much for the quick and thorough response. 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 2, 2018, 10:34am UTC](https://forum.ghost.org/t/example-nginx-config-for-ghost-1-x/984/4 "2018-05-02T10:34:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
