/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-06 / Pound 2.0.9 doesn't work on OpenBSD

[ << ] [ >> ]

[ Re-read configuration? / Oliver Hankeln ... ] [ Pound logging to terminal / 1earthling ... ]

Pound 2.0.9 doesn't work on OpenBSD
Zoong PHAM <zoong(at)zoong.com>
2006-06-28 07:49:42 [ FULL ]
My pound-2.0.9 does not run on OpenBSD-3.6 and 3.8

I compiled it as below:
1) openssl-0.9.8b:
# ./config no-hw threads no-asm --prefix=/tmp --openssldir=/tmp/ssl
# make; make test; make install

2) pound-2.0.9:
# ./configure --with-ssl=/tmp/ssl
# make; make install

I compiled the same way as pound-1.9.2 and openssl-0.9.7d and they works fine
on
OpenBSD-3.6 and 3.8.

# mknod -m 644 /var/empty/dev/urandom c 45 2

# find /var/empty/ -ls
1937164    4 drwxr-xr-x    3 root     wheel         512 Sep 11  2005
/var/empty/
1937165    4 dr-xr-xr-x    2 root     wheel         512 Jun 26 16:26
/var/empty/dev
1937694    0 srw-rw-rw-    1 root     wheel           0 Jun 21 00:02
/var/empty/dev/log
1938944    0 crw-r--r--    1 root     wheel     45,   2 Jun 26 16:26
/var/empty/dev/urandom
#

Here is my test config for pound-2.0.9:
   User "nobody"
   Group "nobody"
   RootJail "/var/empty"
   LogLevel 3
   Daemon 0
   Alive 60
   
   ListenHTTP
           Address 192.168.1.129
           Port 8081
           Client 5
           RewriteLocation 1
   
           Service
                   HeadRequire "Host: .*lemon.*"
                   BackEnd
                           Address 192.168.1.129
                           Port 80
                   End

           Service
                   HeadRequire "Host: .*orange.*"
                   BackEnd
                           Address 192.168.1.129
                           Port 81
                   End
           End
   End

Where 192.168.1.129 and lemon are the server's name and IP address.
orange is the virtual web server.
The web server is the stock Apache-1.3.29 of OpenBSD.

I checked the config file (-c -v -f pound-2.0.9.cfg) and it is correct.
I ran it as /usr/local/sbin/pound -v -f pound-2.0.9.cfg
With netstat, I could see port 8081 listening.
I tried to access my web server without success:
- lynx http://lemon:8081
- lynx http://lemon:8081/index.html
- lynx http://orange:8081
- lynx http://orange:8081/index.html

It worked without going through pound:
- lynx http://lemon:80
- lynx http://lemon:80/index.html
- lynx http://orange:81
- lynx http://orange:81/index.html

Regardless I ran as foreground or background, there was no useful info
log.

I also tried with pound-2.0.8.
In the config file, I tried different value (0, 1) with RewriteLocation. I
also took it out.

Can someone tell me what's wrong here?

TIA,
ZP

Re: [Pound Mailing List] Pound 2.0.9 doesn't work on OpenBSD
Robert Segall <roseg(at)apsis.ch>
2006-06-30 18:42:27 [ FULL ]
On Wed, 2006-06-28 at 16:49 +1100, Zoong PHAM wrote:[...]

First guess: you have something else running on ports 80 and 81.

Second guess: lemon and orange don not resolve to 192.168.1.129 (make
sure this works via the DNS - try it with nslookup). You could also try

	lynx http://192.168.1.129:80/index.html

just to make sure (remove the HeadRequire directive!).

Third guess: there's something wrong with your root jail - remove that
and try again.

Telling us what "does not work" means would also be helpful...[...]

MailBoxer