# Putting an entire OOD setup behind a web proxy?

**URL:** <https://discourse.openondemand.org/t/putting-an-entire-ood-setup-behind-a-web-proxy/519>\
**Category:** Get Help\
**Created:** [October 3, 2019, 3:10pm UTC](https://discourse.openondemand.org/t/putting-an-entire-ood-setup-behind-a-web-proxy/519 "2019-10-03T15:10:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![christophernhill](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@christophernhill](https://discourse.openondemand.org/u/christophernhill)\
**Post date:** [October 7, 2019, 3:29am UTC](https://discourse.openondemand.org/t/putting-an-entire-ood-setup-behind-a-web-proxy/519/4 "2019-10-07T03:29:18Z")

</div>

Chris - it sounds like you are set with Nginx. We have just started testing with Proxy/ReverseProxy for Apache. For Apache 2.4 you need to add some proxy rules for web sockets. There are some useful tips here [https://www.happyassassin.net/2018/11/23/reverse-proxying-websockets-with-apache-a-generic-approach-that-works-even-with-firefox/](https://www.happyassassin.net/2018/11/23/reverse-proxying-websockets-with-apache-a-generic-approach-that-works-even-with-firefox/) . We follow this recipe and have updated our mod\_proxy configuration from

**Before**

```auto
     ProxyPreserveHost On
     RewriteEngine on
     ProxyPass "/" "http://localhost:2080/"
     ProxyPassReverse "/" "http://localhost:2080/"
     ProxyRequests off

```

to **After**

```auto
     ProxyPreserveHost On
     RewriteEngine on
     RewriteCond %{HTTP:Upgrade} websocket [NC]
     RewriteCond %{HTTP:Connection} upgrade [NC]
     RewriteRule .* "ws://localhost:2080%{REQUEST_URI}" [P]
     ProxyPass "/" "http://localhost:2080/"
     ProxyPassReverse "/" "http://localhost:2080/"
     ProxyRequests off

```

At moment the proxy is just against a Docker container with OOD on same host. We have not tried combining with a Proxy balancer yet.

Chris

---

_[View the full topic](https://discourse.openondemand.org/t/putting-an-entire-ood-setup-behind-a-web-proxy/519)._
