jeff-j of osxroot
2/13/2015 - 12:20 AM

apache reverse proxy - goot to put other sites/devices on a website without additional IP/Port

apache reverse proxy - goot to put other sites/devices on a website without additional IP/Port

An example of a reverse proxy setup for Rumpus, used at DSV

#File
/Library/Server/Web/Data/Sites/clients.digitalsoundandvideo.com

#Contains:
<IfModule mod_proxy_balancer.c>
     ProxyPass /file !
     ProxyPass /images !
     ProxyPass /download.php !
     ProxyPass / http://localhost:89/
     ProxyPassReverse / http://localhost:89/
</IfModule>



# File
/Library/Server/Web/Config/apache2/webapps/rumpus-reverse-proxy.plist 

# Contains

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">
<dict>
        <key>includeFiles</key>
        <array>
                <string>/Library/Server/Web/Data/Sites/clients.digitalsoundandvideo.com/reverseproxy.cfg</string>
        </array>
        <key>name</key>
        <string>com.digitalsoundandvideo.rumpus</string>
        <key>displayName</key>          <!-- Name shown in Server app -->
        <string>Rumpus-Reverse-Proxy</string>
        <key>installationIndicatorFilePath</key>
        <string>/Library/Server/Web/Data/Sites/clients.digitalsoundandvideo.com/reverseproxy.cfg</string>
</dict>
</plist>