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
|