Report abuse


			
# lightty running on 8080 with a virtual host for preview.example.com pointing to the rails root
# mongrels on 9000 - 9002

User            "www-data"
Group           "www-data"
LogLevel        4
Alive           30

ListenHTTP
        Address 0.0.0.0
        Port 80
End

Service 
        HeadRequire "Host:.*preview.example.com.*"
        URL "/dl/.*"
        BackEnd 
                Address 127.0.0.1
                Port 8080
        End
        Session 
                Type BASIC
                TTL 300
        End
End

Service
    HeadRequire "Host:.*preview.example.com.*"
    BackEnd
        Address 127.0.0.1
        Port    9000
    End
    BackEnd
        Address 127.0.0.1
        Port    9001
    End
    BackEnd
        Address 127.0.0.1
        Port    9002
    End
    Session
        Type    BASIC
        TTL     300
    End
End