# 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:** 10

<div class="post-metadata">

**Author:** ![ledimeo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ledimeo/32/157962_2.png) [@ledimeo](https://meta.discourse.org/u/ledimeo)\
**Post date:** [11 בנובמבר,‏ 2019,‏ 7:02pm UTC](https://meta.discourse.org/t/how-to-run-discourse-in-apache-vhost-not-nginx/133112/10 "2019-11-11T19:02:08Z")

</div>

I resolved setting app.yml (Discouse) like so:  
` expose:`  
` - "2045:80" # http`  
` - "8443:443" # https`

.. and my vhost like so:  
`<VirtualHost *myhostIP*:443>`  
` ServerName forum.domain.org`  
` ServerAlias forum.domain.org`  
…  
` ProxyAddHeaders Off`  
` ProxyPass / "http://localhost:2045/"`  
` ProxyPassReverse / "http://localhost:2045/"`  
`</VirtualHost>`

I hope I didn’t misunderstand your question 😊

---

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