Home > Sysadmin > pound, a little example that redirect / to /opensso for a given virtual host

pound, a little example that redirect / to /opensso for a given virtual host

August 9th, 2009 Leave a comment Go to comments

It’s the first time I’m using pound (a http reverse proxy), and I was a little disappointed about its configuration. My use case is very simple, for a given virtual host (idp.asyd.net in my case) I want to redirect from / to /opensso. Since pound seems not very well documented, here my configuration to achieve that:

ListenHTTP
   Address  0.0.0.0
   Port  80
   Service
      HeadRequire "Host: idp.asyd.net"
      URL "^/$"
      Redirect "http://idp.asyd.net/opensso"
   End
   Service
      HeadRequire "Host: idp.asyd.net"
      Backend
         Address 127.0.0.1
         Port 8080
      End
   End
End

Categories: Sysadmin Tags:
  1. No comments yet.
  1. No trackbacks yet.