Hi,

Following http://marc.info/?l=openbsd-misc&m=140508090726719&w=2,
I'm trying to implement a similar setup.

relayd(8) is listening on a public IP.
httpd(8) is listening on localhost:80 and apache-httpd-openbsd is
listening on localhost:81.

I would like to handle all traffic with httpd(8) and only UserDir URLs
(/~user) with apache-httpd-openbsd.

I tried :

ext_addr="x.x.x.x"
table <web_httpd> { 127.0.0.1 }
table <web_apache> { 127.0.0.1 }
http protocol filters {
        return error
        # pass # not needed.

        # tried these forms:
        match request quick path "/~*" forward to <web_apache>
        match request quick path "/~user/*" forward to <web_apache>

        match request path "*" forward to <web_httpd>
}
relay site1 {
        listen on $ext_addr port 80
        protocol filters
        forward to <web_httpd> check tcp port 80
        forward to <web_apache> check tcp port 81
}


But it half works. Sometimes it works and sometimes the UserDir traffic
is sent to httpd(8) and the non-UserDir traffic is sent to Apache.

I tried to use a public IP for binding web_apache (still on port
81) but it failed in the exact same way. 
In case there is a problem with the '~' character, I also tried to use
something like "/user" for the string. But it did the same.


Does anybody have any idea how to get it working ?

Thanks for any hint !
Best.
Olivier








-- 
Olivier Cherrier - Symacx.com
Phone: +352691754777
mailto:[email protected]

Reply via email to