# Discourse + web server. Possible or better to avoid?

**URL:** https://meta.discourse.org/t/discourse-web-server-possible-or-better-to-avoid/157489
**Category:** Self-hosting
**Created:** [July 12, 2020, 4:58am UTC](https://meta.discourse.org/t/discourse-web-server-possible-or-better-to-avoid/157489 "2020-07-12T04:58:11Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [July 12, 2020, 1:54pm UTC](https://meta.discourse.org/t/discourse-web-server-possible-or-better-to-avoid/157489/11 "2020-07-12T13:54:39Z")

</div>

Not sure if it’s more complex to use apache as a server and a proxy than bundling nginx or HAproxy 😅  
About the tutorial, CentOS or Ubuntu shouldn’t make a lot of differences, apt instead of yum ,  
[https://support.cloudflare.com/hc/en-us/articles/360029696071-Restoring-original-visitor-IPs-Option-2-Installing-mod-remoteip-with-Apache](https://support.cloudflare.com/hc/en-us/articles/360029696071-Restoring-original-visitor-IPs-Option-2-Installing-mod-remoteip-with-Apache) instead of

> [@Set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/set-up-discourse-on-a-server-with-existing-apache-sites/30013/1):
>
> For Centos 7, use: [mod\_remoteip - Apache HTTP Server Version 2.5](http://httpd.apache.org/docs/trunk/mod/mod_remoteip.html)

may I suggest this for apache as a reverse proxy

> [@Discourse behind reverse proxy and https](https://meta.discourse.org/t/discourse-behind-reverse-proxy-and-https/148705/3):
>
> I got Apache2 working “no problem” in a test bed with Apache2 as a reverse proxy to a unix socket in the container: The only difference I found (note: only a few hours of testing, nothing complete) was: Apache2 will not work with with a symlink to the unix socket in the shared volume in the container; Apache2 was a bit slower in a rough test, but not by much. Personally, I’m not a fan of religious wars over technologies; so I disagree that “Apache2 will give you a lot of issues.” I did n…

---

_[View the full topic](https://meta.discourse.org/t/discourse-web-server-possible-or-better-to-avoid/157489)._
