|
List Info
Thread: plone/zope and apache co-exisiting on same server with different IPs for each
|
|
| plone/zope and apache co-exisiting on
same server with different IPs for each |

|
2006-05-15 10:16:30 |
Hi,
This is my first post to the list so please be gentle...!
(also a bit of a zope/plone noob...)
I have searched a little and followed a few howtos, but have
come up against a brickwall.
I am aiming for an installation where I have plone/zope
accepting requests from 1 IP address, and Apache listening
on another, both on the same machine. Both IPs are static
and both are setup correctly for the machine. Apache servers
a bunch of site as virtual hosts, and zope/plone will serve
only one site to start with.
Do I need to use Apache to rewrite URLs to pass on to zope
even though they have separate IPs? Currently I have the
ip-address in zope.conf set to one IP with apache ports.conf
set to the other, they are both set to port 80. I assume the
port conflict is the problem, but how do I get them both to
listen on port 80 yet different IPs?
When I run zope, I get this error message -
File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/run.py
", line 56, in ?
run()
File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/run.py
", line 21, in run
starter.prepare()
File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/__init
__.py", line 92, in prepare
self.setupServers()
File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/__init
__.py", line 208, in setupServers
raise ZConfig.ConfigurationError(socket_err
ZConfig.ConfigurationError: There was a problem starting a
server of type "HTTPServer". This may mean that
your user does not have permission to bind to the port which
the server is trying to use or the port may already be in
use by another application. (Cannot assign requested
address)
Which confirms the port conflict.
I have tried to avoid using rewrite rules as I am not
proficient using them - have usually just had apache running
on its own - so have been unnecessary. I accept that I may
have to get my hands dirty!
Can anyone give me any pointers to a solution...
Many thanks.
Ade
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| plone/zope and apache co-exisiting on
same server with different IPs for each |

|
2006-05-15 11:57:15 |
On 5/15/06, Adrian Jones <ade funkyfish.net> wrote:
> Hi,
Hi Adrian
> Do I need to use Apache to rewrite URLs to pass on to
zope even though they have separate IPs? Currently I have
the ip-address in zope.conf set to one IP with apache
ports.conf set to the other, they are both set to port 80. I
assume the port conflict is the problem, but how do I get
them both to listen on port 80 yet different IPs?
You can't use the same ip/port for more one application.
So, you have
2 solutions to solve the problem :
- use Apache for all site, with virtual host (and
proxypass/rewrite
rule for zope's site).
- use a different ip for Zope or Apache. To implement this
solution,
you must give the ip in the config file. For example in
zope.conf, the
right directive to use is "ip-address", like
this :
ip-address 192.168.1.2
But I prefer the first solution, Apache handle more
efficiently http
request and "smooth" all requests for Zope
(looks the difference in
stress test with users > 100)..
--
Sébastien Douche <sdouche gmail.com>
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| plone/zope and apache co-exisiting on
same server with different IPs for each |

|
2006-05-15 17:16:29 |
Hi Adrian,
I have tried the 2 IPs approach and it caused us no end of
issues. It
was very easy to setup a VirtualHost with RewriteRules to
proxy through
to Zope though.
Cheers,
Pete
Sebastien Douche wrote:
> On 5/15/06, Adrian Jones <ade funkyfish.net> wrote:
>> Hi,
>
> Hi Adrian
>
>> Do I need to use Apache to rewrite URLs to pass on
to zope even
>> though they have separate IPs? Currently I have the
ip-address in
>> zope.conf set to one IP with apache ports.conf set
to the other, they
>> are both set to port 80. I assume the port conflict
is the problem,
>> but how do I get them both to listen on port 80 yet
different IPs?
>
> You can't use the same ip/port for more one
application. So, you have
> 2 solutions to solve the problem :
>
> - use Apache for all site, with virtual host (and
proxypass/rewrite
> rule for zope's site).
> - use a different ip for Zope or Apache. To implement
this solution,
> you must give the ip in the config file. For example in
zope.conf, the
> right directive to use is "ip-address",
like this :
> ip-address 192.168.1.2
>
> But I prefer the first solution, Apache handle more
efficiently http
> request and "smooth" all requests for Zope
(looks the difference in
> stress test with users > 100)..
>
>
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
| plone/zope and apache co-exisiting on
same server with different IPs for each |

|
2006-05-15 18:43:49 |
On Mon, 15 May 2006 11:16:30 +0100
Adrian Jones <ade funkyfish.net> wrote:
Many thanks for the advice. I'll give the suggestions a go
and post back!
Cheers,
Adrian
> Hi,
>
> This is my first post to the list so please be
gentle...! (also a bit of a zope/plone noob...)
>
> I have searched a little and followed a few howtos, but
have come up against a brickwall.
>
> I am aiming for an installation where I have plone/zope
accepting requests from 1 IP address, and Apache listening
on another, both on the same machine. Both IPs are static
and both are setup correctly for the machine. Apache servers
a bunch of site as virtual hosts, and zope/plone will serve
only one site to start with.
>
> Do I need to use Apache to rewrite URLs to pass on to
zope even though they have separate IPs? Currently I have
the ip-address in zope.conf set to one IP with apache
ports.conf set to the other, they are both set to port 80. I
assume the port conflict is the problem, but how do I get
them both to listen on port 80 yet different IPs?
>
> When I run zope, I get this error message -
>
> File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/run.py
", line 56, in ?
> run()
> File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/run.py
", line 21, in run
> starter.prepare()
> File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/__init
__.py", line 92, in prepare
> self.setupServers()
> File
"/usr/local/Zope-2.9.3/lib/python/Zope2/Startup/__init
__.py", line 208, in setupServers
> raise ZConfig.ConfigurationError(socket_err
> ZConfig.ConfigurationError: There was a problem
starting a server of type "HTTPServer". This may
mean that your user does not have permission to bind to the
port which the server is trying to use or the port may
already be in use by another application. (Cannot assign
requested address)
>
> Which confirms the port conflict.
>
> I have tried to avoid using rewrite rules as I am not
proficient using them - have usually just had apache running
on its own - so have been unnecessary. I accept that I may
have to get my hands dirty!
>
> Can anyone give me any pointers to a solution...
>
> Many thanks.
>
> Ade
_______________________________________________
Setup mailing list
Setup lists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
|
|
[1-4]
|
|