Hi people,

I have this relayd

relay katzele {
        listen on vio0  port 8200
        forward to www1 port 80
}

www1 run merecat with virtual-host true:

        ## Virtual hosting
        ## /var/www/cgi-bin/          <-- Shared CGI
        ## /var/www/git.example.com   <-- git.example.com
        ## /var/www/ftp.example.com   <-- ftp.example.com
        virtual-host = true

(I'm move then on httpd at some point)

but I have this particular something.netlib.re running
on busybox httpd listening on www1:8200 so I wrote
a protocol. /etc/examples/relayd.conf didn't help
on this particular scenario so I googled some examples
and came to:

http protocol katzele {
        match header log "Host"
        pass request quick \
                header "host" value "something.codelib.re" \
                forward to www1 port 8200
}

I have a Syntax error (relayd doesn't tell me more).

the way I understood what I wrote is: cnx is passed if
all the conditions are ok (actions seen as "always true
conditions" like in the find command).

        pass    # the response will be given if
        request # condition 1: this connexion is a request
        quick   # always true, will shortcut the other rules
        header "Host" value "something.codelib.re" # Host is "something"
        forward to www1 port 8200 # the next step is to forward it

but the more I read the doc, the less I'm confident about the fact
I understood a single word.

any help on this ?

thanks and regards

-- 
Marc Chantreux

Attachment: signature.asc
Description: PGP signature

Reply via email to