Skip to content

Instantly share code, notes, and snippets.

@mailtruck
Forked from whoahbot/apache.conf
Created June 20, 2012 04:54
Show Gist options
  • Save mailtruck/2958190 to your computer and use it in GitHub Desktop.
Save mailtruck/2958190 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