My favorites | Sign in
Logo
                
Search
for
Updated Feb 04, 2010 by marc.larue
Labels: Phase-Deploy
VirtualHostProxy  
Integrate with your existing HTTP server.

How can you use rupy, if you already have something running on port 80, without having to invest in another server or an expensive firewall/router.

It's simple, virtual-host-proxy the requests through your current HTTP server, ie. redirect the requests to a rupy instance running on another port.

The only drawback of this is that you won't profit from the concurrency scalability of rupy. But by the time you have concurrency problems, you will hopefully have the money to buy new hardware! ;)

Below is an example Apache 2.2 vhost.conf.

This is particularly useful if you need HTTPS!

NameVirtualHost *:80

<VirtualHost *:80>
        ServerName yourdomain.com
        ServerAlias www.yourdomain.com
</VirtualHost>

<VirtualHost *:80>
        ServerName rupy.yourdomain.com
        ProxyPass / http://localhost:8000/
        ProxyPassReverse / http://localhost:8000/
</VirtualHost>

<VirtualHost *:443>
        ServerName rupy.yourdomain.com
        ProxyPass / http://localhost:8000/
        ProxyPassReverse / http://localhost:8000/
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
</VirtualHost>

Sign in to add a comment
Powered by Google Project Hosting