Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-29 Thread Albertas Agejevas
On Fri, Jul 28, 2006 at 10:57:14AM -0700, Steve Juranich wrote:
 NameVirtualHost localhost:8000
 VirtualHost localhost:8000
 Servername localhost
 ErrorLog var/apache2/log/zope.log
 CustomLog var/apache2/log/zope.log common
 RewriteEngine On
 RewriteLog var/apache2/log/rewrites.log
 RewriteLogLevel 0
 RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++\
 http:%{SERVER_NAME}:8000/zope/++$1 [P,L]
 /VirtualHost
 
 
 Now when I visit localhost:8000/zope, I'm at least getting some error
 messages in apache's error_log that /path/to/htdocs/zope doesn't exist. 

Are mod_proxy and mod_rewrite are enabled?

Albertas
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Darryl Cousins
Hi Steve,

keep playing with the rewrite rule. Try without the zope part:

RewriteRule ^(/?.*) http://localhost:8080/++vh++http:localhost:8000/++$1 [P,L]

Then http://locahost:8000/ 'should' take you to the zope instance.

I think that you would want to have the zope/ inside ^(/zope/?.*)

On my setup (linux) I use several host names for my machine so I can
have several instances running - apache on port 80. I find this more
convenient than using the trailing 'zope/'.

# first instance on 8031
NameVirtualHost *
VirtualHost *
ServerName zope3.theshire
RewriteRule ^(/?.*) http://theshire:8031/++vh++http:zope3.theshire:80/++$1 [P,L]
...

# second instance on 8032
VirtualHost *
ServerName zope3test.theshire
RewriteRule ^(/?.*) http://theshire:8032/++vh++http:zope3test.theshire:80/++$1 
[P,L]
...

# the first instance using boston skin
VirtualHost *
ServerName zope3boston.theshire
RewriteRule ^(/?.*) 
http://theshire:8031/++skin++Boston/++vh++http:zope3boston.theshire:80/++$1 
[P,L]
...

# trac
VirtualHost *
ServerName trac.theshire
...

I often find it useful to access the same instance with different server
names so I can stay logged in as manager (http auth) on one and log in
as different site users (cookie auth) to test security settings and only
need one browser open.

Hope that helps.
Darryl

 NameVirtualHost localhost:8000
 VirtualHost localhost:8000
 Servername localhost
 ErrorLog var/apache2/log/zope.log
 CustomLog var/apache2/log/zope.log common
 RewriteEngine On
 RewriteLog var/apache2/log/rewrites.log
 RewriteLogLevel 0
 RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++\
 http:%{SERVER_NAME}:8000/zope/++$1 [P,L]
 /VirtualHost


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Benji York

Darryl Cousins wrote:

I often find it useful to access the same instance with different server
names so I can stay logged in as manager (http auth) on one and log in
as different site users (cookie auth) to test security settings and only
need one browser open.


Another good trick for that is starting multiple servers in the same 
instance on different ports.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users