Skip to content

Instantly share code, notes, and snippets.

@whoahbot
Created April 21, 2009 05:52
Show Gist options
  • Save whoahbot/98962 to your computer and use it in GitHub Desktop.
Save whoahbot/98962 to your computer and use it in GitHub Desktop.
<VirtualHost *>
Servername whoahbot.example.com
DocumentRoot /var/www
RewriteEngine On
RewriteRule ^/http-bind/ http://jabber.example.com:5280/http-bind/ [P]
</VirtualHost>
server {
listen 80;
server_name whoahbot.example.com;
access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log info;
root /var/www/htdocs;
location /http-bind/ {
proxy_pass http://whoahbot.example.com:5280/http-bind/;
}
error_page 404 500 /404.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment