# I want to install using a reverse proxy for Apache

**URL:** <https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519>\
**Category:** Self-hosting\
**Created:** [July 22, 2020, 4:55pm UTC](https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519 "2020-07-22T16:55:49Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Teraterayuki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/teraterayuki/32/160786_2.png) [@Teraterayuki](https://meta.discourse.org/u/Teraterayuki)\
**Post date:** [July 23, 2020, 8:35am UTC](https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519/6 "2020-07-23T08:35:04Z")

</div>

I’m done  
Thank you!  
Here’s what we actually set up!

```plaintext
<VirtualHost *:80>
  ServerName DOMAIN-NAME
    ProxyPreserveHost on
    RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
    RequestHeader set X-Real-IP expr=%{REMOTE_ADDR}
    ProxyPass / unix:/var/discourse/shared/standalone/nginx.http.sock|http://localhost/
    ProxyPassReverse / unix:/var/discourse/shared/standalone/nginx.http.sock|http://localhost/
</VirtualHost>

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/6/2688fc34b4ae5cf8e1bbde212608e19d42cfb606.png)

---

_[View the full topic](https://meta.discourse.org/t/i-want-to-install-using-a-reverse-proxy-for-apache/158519)._
