# 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:** [November 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:** 14

<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:** [November 12, 2019, 11:39am UTC](https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112/14 "2019-11-12T11:39:18Z")

</div>

related: I’ve been poking around with the `install-nginx` script, and I found a minor logic error: the cleanup line that’s _supposed_ to delete the nginx source from `/tmp/` actually doesn’t do anything.

There is no `/tmp/nginx/` directory: it’s `/tmp/nginx-$VERSION/` (at the moment it’s `/tmp/nginx-1.17.4/` and there’s also the tarball `/tmp/nginx-1.17.4.tar.gz`).

- [discourse\_docker/image/base/install-nginx at 416467f6ead98f82342e8a926dc6e06f36dfbd56 · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/416467f6ead98f82342e8a926dc6e06f36dfbd56/image/base/install-nginx#L41)

I think you mean this instead:

```plaintext
rm -fr /tmp/nginx-${VERSION}*

```

---

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