# How to run Discourse in Apache vhost, not Nginx

**URL:** <https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [11 בנובמבר,‏ 2019,‏ 2:18pm UTC](https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112 "2019-11-11T14:18:14Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![maltfield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maltfield/32/160669_2.png) [@maltfield](https://meta.discourse.org/u/maltfield)\
**Post date:** [12 בנובמבר,‏ 2019,‏ 3:28pm UTC](https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112/23 "2019-11-12T15:28:27Z")

</div>

> [@Stephen](#):
>
> You need to use hooks to amend the file from your `app.yml`
> 
> Have you worked with docker before?

I haven’t, sorry. So I need to put the above `sed` commands in the hooks section of app.yml? Is there an example somewhere for how to do that to modify a file in the `docker_discourse` repo at bootstrap? Currently that section only has a `git clone` command for plugins.

I could probably drop those `sed` commands in a `cmd` section like the `git clone` is, but I don’t know which dir where the `install-nginx` script will live..

Also, where does `app.yml` live? I couldn’t link to the `hooks` section above as the `containers` dir is empty in the repo 😕

- [discourse\_docker/containers at master · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/tree/master/containers)

---

_[View the full topic](https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112)._
