[Zope] Running zope on port 80

marc lindahl marc@bowery.com
Tue, 24 Apr 2001 12:10:16 -0400


I ran into this running redhat wolverine.  The issue was that linux running
XINETD (http://www.xinetd.org).  Which is a great thing.  But means you have
to open up ports for them to work.  What I ended up doing is telling zope to
look for port 127.0.0.1:8080 only, and telling xinetd to redirect port 80 to
127.0.0.1:8080 (localhost).   So the xinetd section looks like (you could
just put this in the /etc/xinetd.d directory):

# default: on
# description: web service
#
service http
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = zope
        redirect        = localhost 8080
        disable         = no
}


I just redirected the port instead of running the server, which I did at
startup (so I could get the other ports, etc.) - that script is:

#!/bin/sh
# description: startup Zserver
# chkconfig: 2345 99 00

case "$1" in
'start')
    /usr/local/zope/Zope-2.3.1/start -u zope -p - -W 8081 \
        -a 127.0.0.1 -t 20 \
        &> /usr/local/zope/Zope-2.3.1/var/log/startup.log &
    touch /var/lock/subsys/zope
    ;;
'stop')
    /usr/local/zope/Zope-2.3.1/stop
    rm -f /var/lock/subsys/zope
    ;;
*)
    echo "Usage: $0 { start | stop }"
    ;;
esac
exit 0


Good luck!

> From: Bobby <bobby@dialognet.com>
> Date: Tue, 24 Apr 2001 15:26:20 +0530
> To: zope@zope.org
> Subject: [Zope] Running zope on port 80
> 
> Hi
> 
> Newbie question
> 
> My config
> postgres 7.03
> linux mandrake 7.2
> zope 2.3.0
> 
> i am able to run zope thru port 8080
> but i want it to run from port 80 directly
> i tried logging in as root and maniopulating the z2.py file to set the port
> to 80 but i get a huge error saying permission denined in z2.py file and
> Z2.pid etc.
> 
> Does anyone know what the problem could be ?
> Any help is appreciated ?
> 
> thanks
> 
> bobby
> -- 
> ========================================================
> "On the side of the software box, in the 'System Requirements' section,
> it said 'Requires Windows 95 or better'. So I installed Linux."
> -Anonymous
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )